Fork me on GitHub
#java
<
2020-12-30
>
emccue05:12:45

I would look at the specification for method references specifically

emccue05:12:55

in java it boils down to

emccue05:12:11

interface A {
   B f(C c);
}

emccue05:12:20

so whatever rules are applied to say if this

emccue05:12:29

Thing::someMethod

emccue05:12:41

can be used where an A is expected

emccue05:12:53

those are the rules to use