Interface MoneySetField

All Superinterfaces:
CustomField

public interface MoneySetField extends CustomField

A field with a money set value.


Example to create an instance using the builder pattern

     MoneySetField moneySetField = MoneySetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

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

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

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

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

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

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

      static MoneySetFieldBuilder builder()
      builder factory method for MoneySetField
      Returns:
      builder
    • builder

      static MoneySetFieldBuilder builder(MoneySetField template)
      create builder for MoneySetField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMoneySetField

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