3 ms·
In modern Java they can be used to create an accessor function, because Java still does not have syntax for referencing fields in this context. items.stream
by ivan_gammel 6y ago
In modern Java they can be used to create an accessor function, because Java still does not have syntax for referencing fields in this context.
items.stream().map(Foo::bar)
vs
items.stream().map(i -> i.bar)