Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ch.claude_martin;
- import java.util.function.ToIntFunction;
- public class Foo {
- private int getBla(Foo this) {
- return 42;
- }
- public static void main(String[] args) {
- ToIntFunction<Foo> ref = Foo::getBla;
- System.out.println(ref.applyAsInt(new Foo()));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement