Class LabelsCustomFieldImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.customfields.CustomFieldImpl
pw.chew.clickup4j.internal.entities.customfields.LabelsCustomFieldImpl
- All Implemented Interfaces:
ICustomField
,LabelsCustomField
-
Nested Class Summary
Nested classes/interfaces inherited from interface pw.chew.clickup4j.api.entities.customfields.LabelsCustomField
LabelsCustomField.Label
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<LabelsCustomField.Label>
Returns all possible labels for this task.@NotNull List<LabelsCustomField.Label>
getValue()
Returns the value of this custom field.Methods inherited from class pw.chew.clickup4j.internal.entities.customfields.CustomFieldImpl
getClickUp4j, getId, getName, getTimeCreated, getType, isRequired
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pw.chew.clickup4j.api.entities.customfields.ICustomField
getClickUp4j, getId, getName, getTimeCreated, isRequired
Methods inherited from interface pw.chew.clickup4j.api.entities.customfields.LabelsCustomField
getType
-
Constructor Details
-
LabelsCustomFieldImpl
-
-
Method Details
-
getValue
Description copied from interface:ICustomField
Returns the value of this custom field.It's highly recommended to cast this value to the appropriate type, because it returns more appropriate data. For example, if the custom field is of type
CustomFieldType.TEXT
, you can cast the value toTextCustomField
, this class can be found usingCustomFieldType.getAssociatedClass()
.This will be null under the following circumstances:
- No value is specified.
- The task response did not contain a
value
. Notably when an individual task is retrieved.
- Specified by:
getValue
in interfaceICustomField
- Specified by:
getValue
in interfaceLabelsCustomField
- Overrides:
getValue
in classCustomFieldImpl
- Returns:
- the value of this custom field
-
getLabels
Description copied from interface:LabelsCustomField
Returns all possible labels for this task.- Specified by:
getLabels
in interfaceLabelsCustomField
- Returns:
- a list of labels.
-