Interface StringField

All Superinterfaces:
CustomField

public interface StringField extends CustomField

A field with a string value.


Example to create an instance using the builder pattern

     StringField stringField = StringField.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 StringField of()
      factory method
      Returns:
      instance of StringField
    • of

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

      @Nullable static StringField deepCopy(@Nullable StringField template)
      factory method to create a deep copy of StringField
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static StringFieldBuilder builder()
      builder factory method for StringField
      Returns:
      builder
    • builder

      static StringFieldBuilder builder(StringField template)
      create builder for StringField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStringField

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