Class CachedSupplier<T>

java.lang.Object
net.darkhax.openloader.common.impl.CachedSupplier<T>
All Implemented Interfaces:
Supplier<T>

public class CachedSupplier<T> extends Object implements Supplier<T>
  • Constructor Details

    • CachedSupplier

      protected CachedSupplier(Supplier<T> delegate)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>
    • isCached

      public boolean isCached()
    • cache

      public static <T> CachedSupplier<T> cache(Supplier<T> delegate)