Documentation / dataflow / com.femastudios.dataflow.extensions / add
Go to reference

add

@JvmName("plus") fun Field<BigDecimal>.add(augend: Field<BigDecimal>, mc: Field<MathContext>): Field<BigDecimal>
@JvmName("plus") fun Field<BigDecimal>.add(augend: Field<BigDecimal>, mc: MathContext): Field<BigDecimal>
@JvmName("plus") fun Field<BigDecimal>.add(augend: BigDecimal, mc: Field<MathContext>): Field<BigDecimal>
@JvmName("plus") fun Field<BigDecimal>.add(augend: BigDecimal, mc: MathContext): Field<BigDecimal>

Same as add, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling add in the transformation function.

This is simply a convenience function.

See Also

java.math.BigDecimal.add


fun <T> MutableField<Collection<T>>.add(element: T): Boolean

Adds the given element to the collection. The operation is atomic and thread-safe.

Return
true if the element has been added


fun <T> MutableField<List<T>>.add(element: T): Unit

Adds the given element to the collection. The operation is atomic and thread-safe.


fun <T> MutableField<Set<T>>.add(element: T): Boolean

Adds the given element to the collection. The operation is atomic and thread-safe.

Return
true if the element has been added, false if the element is already contained in the set.