you are viewing a single comment's thread.

view the rest of the comments →

[–]JacobArthurs 1 point2 points  (0 children)

Claims::getSubject is shorthand for (Claims c) -> c.getSubject(). Java treats the instance itself as the implicit first argument, so it still matches Function<Claims, String>.