Class ChecklistImpl.ItemImpl

java.lang.Object
pw.chew.clickup4j.internal.entities.ChecklistImpl.ItemImpl
All Implemented Interfaces:
Checklist.Item
Enclosing class:
ChecklistImpl

public class ChecklistImpl.ItemImpl extends Object implements Checklist.Item
  • Constructor Details

    • ItemImpl

      public ItemImpl(@NotNull @NotNull org.json.JSONObject data)
    • ItemImpl

      public ItemImpl(@NotNull @NotNull org.json.JSONObject data, @NotNull @NotNull Checklist.Item parent)
  • Method Details

    • getId

      @NotNull public @NotNull String getId()
      Description copied from interface: Checklist.Item
      The item's ID.
      Specified by:
      getId in interface Checklist.Item
      Returns:
      The item's ID.
    • getName

      @NotNull public @NotNull String getName()
      Description copied from interface: Checklist.Item
      The item's name.
      Specified by:
      getName in interface Checklist.Item
      Returns:
      The item's name.
    • getOrderIndex

      public double getOrderIndex()
      Description copied from interface: Checklist.Item
      The item's ordering index. This can be used as a sorting key.
      Specified by:
      getOrderIndex in interface Checklist.Item
      Returns:
      The item's ordering index.
    • getAssignee

      @Nullable public @Nullable User getAssignee()
      Description copied from interface: Checklist.Item
      This item's assignee.
      Specified by:
      getAssignee in interface Checklist.Item
      Returns:
      The item's assignee.
    • getGroupAssignee

      public void getGroupAssignee()
      Specified by:
      getGroupAssignee in interface Checklist.Item
    • isResolved

      public boolean isResolved()
      Description copied from interface: Checklist.Item
      Returns whether this item is marked as complete.
      Specified by:
      isResolved in interface Checklist.Item
      Returns:
      Whether this item is marked as complete.
    • getParent

      @Nullable public @Nullable Checklist.Item getParent()
      Description copied from interface: Checklist.Item
      The parent item of this checklist item.
      If this is null, this item is a top-level item.
      Specified by:
      getParent in interface Checklist.Item
      Returns:
      Nullable parent item of this checklist item.
    • getCreatedAt

      @NotNull public @NotNull OffsetDateTime getCreatedAt()
      Description copied from interface: Checklist.Item
      Returns when this item was created.
      Specified by:
      getCreatedAt in interface Checklist.Item
      Returns:
      When this item was created.
    • getChildren

      @NotNull public @NotNull List<Checklist.Item> getChildren()
      Description copied from interface: Checklist.Item
      All child items of this item. If the item has no children, this will be empty.
      Specified by:
      getChildren in interface Checklist.Item
      Returns:
      Never-null list containing all child items of this item.