Package fluent.functions.icu.numeric
Class AddFn
java.lang.Object
fluent.functions.icu.numeric.AddFn
- All Implemented Interfaces:
fluent.functions.FluentFunction
IADD(): Integral-add function
Adds the named option "addend" (which must be a long or integer) to each positional value.
Examples:
- IADD(), IADD("stringvalue", 1), IADD(3.3, 4.4, addend:1), IADD(5, 2, addend:3.3) -> error
- IADD(5, addend:1) -> 6
- IADD(5, addend:-1) -> 4
- IADD($var, addend:1) -> adds 1 to each item in
var
No 'passthrough' occurs with this method. For any arguments that are NOT integers or longs, an error will occur.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
AddFn
public AddFn()
-
-
Method Details
-
name
- Specified by:
namein interfacefluent.functions.FluentFunction
-
apply
public List<fluent.types.FluentValue<?>> apply(fluent.functions.ResolvedParameters params, fluent.bundle.resolver.Scope scope) - Specified by:
applyin interfacefluent.functions.FluentFunction
-