Class SignFn

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

public class SignFn extends Object implements fluent.functions.FluentFunction
SIGN() : Sign of a numeric value (and more..)

Returns a string indicating the sign of a numeric value. Non-numeric values are passed through. At least one value is required.

Specifically:

  • negative values => "negative"
  • zero => "zero"
  • positive values => "positive"
For floating-point types, "zero" will be returned for positive or negative zero. Additionally:
  • NaN => "nan"
  • positive infinity => "positiveInfinity"
  • negative infinity=> "negativeInfinity"
  • 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

    • SignFn

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