Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benweidig/260e7aa6dce839417a7de4ac172d58a4 to your computer and use it in GitHub Desktop.
Save benweidig/260e7aa6dce839417a7de4ac172d58a4 to your computer and use it in GitHub Desktop.
// BIND RETURN VALUE
Predicate<LocalDate> isAfterNowAsRef = LocalDate.now()::isAfter;
// BIND STATIC FIELD
Function<Object, String> castToStr = String.class::cast;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment