Interface MoneySetAttribute

All Superinterfaces:
Attribute

public interface MoneySetAttribute extends Attribute

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


Example to create an instance using the builder pattern

     MoneySetAttribute moneySetAttribute = MoneySetAttribute.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

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

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

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

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

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

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

      static MoneySetAttributeBuilder builder()
      builder factory method for MoneySetAttribute
      Returns:
      builder
    • builder

      static MoneySetAttributeBuilder builder(MoneySetAttribute template)
      create builder for MoneySetAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMoneySetAttribute

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