Interface CustomFieldSetType

All Superinterfaces:
FieldType

public interface CustomFieldSetType extends FieldType

Values of a SetType Custom Field are sets of values of the specified elementType (without duplicate elements).


Example to create an instance using the builder pattern

     CustomFieldSetType customFieldSetType = CustomFieldSetType.builder()
             .elementType(elementTypeBuilder -> elementTypeBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getElementType

      @NotNull @Valid @NotNull @Valid FieldType getElementType()

      Field type of the elements in the set.

      Returns:
      elementType
    • setElementType

      void setElementType(FieldType elementType)

      Field type of the elements in the set.

      Parameters:
      elementType - value to be set
    • of

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

      static CustomFieldSetType of(CustomFieldSetType template)
      factory method to create a shallow copy CustomFieldSetType
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static CustomFieldSetTypeBuilder builder()
      builder factory method for CustomFieldSetType
      Returns:
      builder
    • builder

      static CustomFieldSetTypeBuilder builder(CustomFieldSetType template)
      create builder for CustomFieldSetType instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomFieldSetType

      default <T> T withCustomFieldSetType(Function<CustomFieldSetType,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<CustomFieldSetType> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference