Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Consumer<String> specificInstance = System.out::println;
- Function<Object, String> arbitraryInstance = Object::toString;
- Function<Object, String> staticMethod = String::valueOf;
- Supplier<Object> constructor = Object::new;
- Function<Integer, Object> arrayConstructor = Object[]::new;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement