Interface AttributeEnumType

All Superinterfaces:
AttributeType

public interface AttributeEnumType extends AttributeType
AttributeEnumType
Example to create an instance using the builder pattern

     AttributeEnumType attributeEnumType = AttributeEnumType.builder()
             .plusValues(valuesBuilder -> valuesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValues

      @NotNull @Valid @NotNull @Valid List<AttributePlainEnumValue> getValues()
      Returns:
      values
    • setValues

      void setValues(AttributePlainEnumValue... values)
      set values
      Parameters:
      values - values to be set
    • setValues

      void setValues(List<AttributePlainEnumValue> values)
      set values
      Parameters:
      values - values to be set
    • of

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

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

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

      static AttributeEnumTypeBuilder builder()
      builder factory method for AttributeEnumType
      Returns:
      builder
    • builder

      static AttributeEnumTypeBuilder builder(AttributeEnumType template)
      create builder for AttributeEnumType instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAttributeEnumType

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