Class AbsFn

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

public class AbsFn extends Object implements fluent.functions.FluentFunction
ABS() : Absolute value

Returns the absolute value of a number, keeping the same numeric type.

Non-numeric values are passed through. At least one value is required.

Examples:

  • ABS(-5) => 5
  • ABS("stringvalue") => "stringvalue"
  • 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

    • AbsFn

      public AbsFn()
  • 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