Class MemoizingSupply<T>

java.lang.Object
org.optaplanner.core.impl.util.MemoizingSupply<T>
Type Parameters:
T -
All Implemented Interfaces:
Supply

public final class MemoizingSupply<T> extends Object implements Supply
Supply whose value is pre-computed and cached the first time read() is called.
  • Constructor Details

    • MemoizingSupply

      public MemoizingSupply(Supplier<T> supplier)
  • Method Details

    • read

      public T read()