Class DeferredEntry<T>

java.lang.Object
my.celium.org.registry.DeferredEntry<T>
All Implemented Interfaces:
Supplier<T>

public final class DeferredEntry<T> extends Object implements Supplier<T>
Lazy handle for one registered object. Behaves like a memoised Supplier: get() returns the registered value once the loader has created it.
  • Method Details

    • get

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

      public boolean isPresent()
      Whether the underlying object exists yet. Never throws.