Java 8 Fonction Fournisseur Consommateur
@Testpublic void supplierWithOptional(){
Supplier<Double> doubleSupplier = () -> Math.random();
Optional<Double> optionalDouble = Optional.empty();
System.out.println(optionalDouble.orElseGet(doubleSupplier));}
Agreeable Anaconda