Interface LocalizedLabel

All Superinterfaces:
Label

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

     LocalizedLabel localizedLabel = LocalizedLabel.builder()
             .value(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getType

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

      @NotNull @Valid @NotNull @Valid LocalizedString getValue()

      Changed value.

      Returns:
      value
    • setValue

      void setValue(LocalizedString value)

      Changed value.

      Parameters:
      value - value to be set
    • of

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

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

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

      static LocalizedLabelBuilder builder()
      builder factory method for LocalizedLabel
      Returns:
      builder
    • builder

      static LocalizedLabelBuilder builder(LocalizedLabel template)
      create builder for LocalizedLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withLocalizedLabel

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