Interface LocalizedEnumField

All Superinterfaces:
CustomField

public interface LocalizedEnumField extends CustomField

A field with a localized enum value.


Example to create an instance using the builder pattern

     LocalizedEnumField localizedEnumField = LocalizedEnumField.builder()
             .value("{value}")
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull String getValue()
      Returns:
      value
    • setValue

      void setValue(String value)
      set value
      Parameters:
      value - value to be set
    • of

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

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

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

      static LocalizedEnumFieldBuilder builder()
      builder factory method for LocalizedEnumField
      Returns:
      builder
    • builder

      static LocalizedEnumFieldBuilder builder(LocalizedEnumField template)
      create builder for LocalizedEnumField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withLocalizedEnumField

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