Supplier
Supplier<String> supplier;
String result;
// Supplier initialization is skipped
result = supplier.get();Mapping Constructors
Supplier<Entity> supplier;
supplier = Entity::new;
// Both lines create a new entity the same way
Entity ent1 = new Entity();
Entity ent2 = supplier.get();Last updated