Interface NumberSetAttribute

All Superinterfaces:
Attribute

public interface NumberSetAttribute extends Attribute

This type represents an attribute whose value is a set of numbers.


Example to create an instance using the builder pattern

     NumberSetAttribute numberSetAttribute = NumberSetAttribute.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull List<Double> getValue()
      Returns:
      value
    • setValue

      void setValue(Double... value)
      set value
      Parameters:
      value - values to be set
    • setValue

      void setValue(List<Double> value)
      set value
      Parameters:
      value - values to be set
    • of

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

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

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

      static NumberSetAttributeBuilder builder()
      builder factory method for NumberSetAttribute
      Returns:
      builder
    • builder

      static NumberSetAttributeBuilder builder(NumberSetAttribute template)
      create builder for NumberSetAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withNumberSetAttribute

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