Interface NumberCustomField

All Superinterfaces:
ICustomField
All Known Implementing Classes:
NumberCustomFieldImpl

public interface NumberCustomField extends ICustomField
  • Method Details

    • getValue

      Number 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 to TextCustomField, this class can be found using CustomFieldType.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 interface ICustomField
      Returns:
      the value of this custom field
    • getType

      default CustomFieldType getType()
      Description copied from interface: ICustomField
      Returns the type of this custom field. This will be one of CustomFieldType.
      Specified by:
      getType in interface ICustomField
      Returns:
      the type of this custom field