Class AddFn

java.lang.Object
fluent.functions.icu.numeric.AddFn
All Implemented Interfaces:
fluent.functions.FluentFunction

public class AddFn extends Object implements 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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<fluent.types.FluentValue<?>>
    apply(fluent.functions.ResolvedParameters params, fluent.bundle.resolver.Scope scope)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface fluent.functions.FluentFunction

    select
  • Field Details

  • Constructor Details

    • AddFn

      public AddFn()
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface fluent.functions.FluentFunction
    • apply

      public List<fluent.types.FluentValue<?>> apply(fluent.functions.ResolvedParameters params, fluent.bundle.resolver.Scope scope)
      Specified by:
      apply in interface fluent.functions.FluentFunction