Class CurrencyFn

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

public class CurrencyFn extends Object implements fluent.functions.FluentFunction
CURRENCY() : Format a number as a currency.

This does not support patterns. If a specific pattern is desired, use the DecimalFn function instead. This will behave as NUMBER($var, style:"currency") but is more explicit.

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

Options:

  • minimumFractionDigits: integer value (0 is default)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Function name
  • 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

    • CurrencyFn

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