Class GenericManagerImpl<T>

java.lang.Object
pw.chew.clickup4j.internal.entities.managers.GenericManagerImpl<T>
All Implemented Interfaces:
GenericManager<T>
Direct Known Subclasses:
TaskManagerImpl

public class GenericManagerImpl<T> extends Object implements GenericManager<T>
  • Constructor Details

    • GenericManagerImpl

      public GenericManagerImpl(@NotNull @NotNull ClickUp4j clickUp4j)
  • Method Details

    • getClickUp4j

      @NotNull public @NotNull ClickUp4j getClickUp4j()
      Description copied from interface: GenericManager
      Returns the ClickUp4j instance.
      Specified by:
      getClickUp4j in interface GenericManager<T>
      Returns:
      The ClickUp4j instance.
    • save

      public void save(Consumer<T> consumer)
      Description copied from interface: GenericManager
      Saves the entity.
      Pass a consumer to be called when the request is complete.
      Specified by:
      save in interface GenericManager<T>
      Parameters:
      consumer - The consumer to be called when the request is complete.
    • complete

      public T complete()
      Description copied from interface: GenericManager
      Synchronously saves the entity.
      Specified by:
      complete in interface GenericManager<T>
      Returns:
      The saved entity.