Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This annotation is optional, but lets the compiler check
- // if this interface is "functional" (i.e. one abstract method)
- @FunctionalInterface
- public interface IntParser {
- // This is the only abstract method, so lambdas will
- // be lifted into implementing this method
- int stringToInt(String input);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement