Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // This annotation is optional, but lets the compiler check
  2. // if this interface is "functional" (i.e. one abstract method)
  3. @FunctionalInterface
  4. public interface IntParser {
  5.  
  6. // This is the only abstract method, so lambdas will
  7. // be lifted into implementing this method
  8. int stringToInt(String input);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement