Skip to content

Instantly share code, notes, and snippets.

@akaliacius
Created January 25, 2023 20:08
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 akaliacius/b45f09b3d98beb897c960cb871c8158d to your computer and use it in GitHub Desktop.
Save akaliacius/b45f09b3d98beb897c960cb871c8158d to your computer and use it in GitHub Desktop.
static void eager(OurObject object){
System.out.println("Eager thinks it didn't do anything");
}
static void lazy(Supplier<OurObject> ourObjectSupplier){
System.out.println("Lazy is sure it didn't do anything");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment