Interface CustomFieldEnumType

All Superinterfaces:
FieldType

public interface CustomFieldEnumType extends FieldType

Field type for enum values.


Example to create an instance using the builder pattern

     CustomFieldEnumType customFieldEnumType = CustomFieldEnumType.builder()
             .plusValues(valuesBuilder -> valuesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValues

      @NotNull @Valid @NotNull @Valid List<CustomFieldEnumValue> getValues()

      Allowed values.

      Returns:
      values
    • setValues

      void setValues(CustomFieldEnumValue... values)

      Allowed values.

      Parameters:
      values - values to be set
    • setValues

      void setValues(List<CustomFieldEnumValue> values)

      Allowed values.

      Parameters:
      values - values to be set
    • of

      static CustomFieldEnumType of()
      factory method
      Returns:
      instance of CustomFieldEnumType
    • of

      factory method to create a shallow copy CustomFieldEnumType
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of CustomFieldEnumType
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CustomFieldEnumTypeBuilder builder()
      builder factory method for CustomFieldEnumType
      Returns:
      builder
    • builder

      create builder for CustomFieldEnumType instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomFieldEnumType

      default <T> T withCustomFieldEnumType(Function<CustomFieldEnumType,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CustomFieldEnumType> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference