Class LifeCycle<T extends ILifeCycle<?>>

java.lang.Object
com.marcusslover.plus.lib.lifecycle.LifeCycle<T>
Type Parameters:
T - the type of the life cycle

public class LifeCycle<T extends ILifeCycle<?>> extends Object
Represents a wrapper for a life cycle object.
  • Constructor Details

    • LifeCycle

      public LifeCycle(@NotNull @NotNull Supplier<T> instance)
      Creates a new life cycle.
      Parameters:
      instance - the instance
  • Method Details

    • unregister

      public void unregister()
      Unregisters the life cycle.