Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. @FunctionalInterface
  2. public MyInterface {
  3. default boolean authorize(String value) {
  4. return true;
  5. }
  6. }
  7.  
  8. @FunctionalInterface
  9. interface MyInterface {
  10.  
  11. boolean authorize(int val);
  12.  
  13. default boolean authorize(String value) {
  14. return true;
  15. }
  16. }
  17.  
  18. @FunctionalInterface
  19. interface MyInterface {
  20.  
  21. default boolean authorize(String value) {
  22. return true;
  23. }
  24.  
  25. boolean equals(Object o);
  26. }
  27.  
  28. @FunctionalInterface
  29. public interface MyInterface {
  30. static MyInterface DEFAULT = s->true;
  31. boolean authorize(String value);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement