Class MemoizedSupplier<T>

java.lang.Object
uk.org.webcompere.modelassert.json.impl.MemoizedSupplier<T>
Type Parameters:
T - the answer
All Implemented Interfaces:
Supplier<T>

public class MemoizedSupplier<T> extends Object implements Supplier<T>
A supplier which returns the same answer after the first time
  • Constructor Details

    • MemoizedSupplier

      public MemoizedSupplier(Supplier<T> actualSupplier)
  • Method Details