Interface StringLabel

All Superinterfaces:
Label

public interface StringLabel extends Label
StringLabel
Example to create an instance using the builder pattern

     StringLabel stringLabel = StringLabel.builder()
             .value("{value}")
             .build()
 
  • Field Details

  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Specified by:
      getType in interface Label
      Returns:
      type
    • getValue

      @NotNull @NotNull String getValue()

      Changed value.

      Returns:
      value
    • setValue

      void setValue(String value)

      Changed value.

      Parameters:
      value - value to be set
    • of

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

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

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

      static StringLabelBuilder builder()
      builder factory method for StringLabel
      Returns:
      builder
    • builder

      static StringLabelBuilder builder(StringLabel template)
      create builder for StringLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStringLabel

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