Guest User

Untitled

a guest
Jan 21st, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. private Map<Pair<Type, Boolean>, Function<User, Boolean>> functionInterfaces = new HashMap<>();
  2. {
  3. functionInterfaces .put(Pair.of(Type.MY_TYPE, Boolean.TRUE), MySpringService::myTypeMethod);
  4. }
  5.  
  6. public static boolean myTypeMethod(User user)
  7.  
  8. private static final MySpringService mySpringService = ApplicationInitializer.getAppContext().getBean(MySpringService.class);
Add Comment
Please, Sign In to add comment