Class ChecklistImpl.ItemImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.ChecklistImpl.ItemImpl
- All Implemented Interfaces:
Checklist.Item
- Enclosing class:
ChecklistImpl
-
Constructor Summary
ConstructorDescriptionItemImpl
(@NotNull org.json.JSONObject data) ItemImpl
(@NotNull org.json.JSONObject data, @NotNull Checklist.Item parent) -
Method Summary
Modifier and TypeMethodDescription@Nullable User
This item's assignee.@NotNull List<Checklist.Item>
All child items of this item.@NotNull OffsetDateTime
Returns when this item was created.void
@NotNull String
getId()
The item's ID.@NotNull String
getName()
The item's name.double
The item's ordering index.@Nullable Checklist.Item
The parent item of this checklist item.boolean
Returns whether this item is marked as complete.
-
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
Description copied from interface:Checklist.Item
The item's ID.- Specified by:
getId
in interfaceChecklist.Item
- Returns:
- The item's ID.
-
getName
Description copied from interface:Checklist.Item
The item's name.- Specified by:
getName
in interfaceChecklist.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 interfaceChecklist.Item
- Returns:
- The item's ordering index.
-
getAssignee
Description copied from interface:Checklist.Item
This item's assignee.- Specified by:
getAssignee
in interfaceChecklist.Item
- Returns:
- The item's assignee.
-
getGroupAssignee
public void getGroupAssignee()- Specified by:
getGroupAssignee
in interfaceChecklist.Item
-
isResolved
public boolean isResolved()Description copied from interface:Checklist.Item
Returns whether this item is marked as complete.- Specified by:
isResolved
in interfaceChecklist.Item
- Returns:
- Whether this item is marked as complete.
-
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 interfaceChecklist.Item
- Returns:
- Nullable parent item of this checklist item.
-
getCreatedAt
Description copied from interface:Checklist.Item
Returns when this item was created.- Specified by:
getCreatedAt
in interfaceChecklist.Item
- Returns:
- When this item was created.
-
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 interfaceChecklist.Item
- Returns:
- Never-null list containing all child items of this item.
-