select
Determine the PluralCategory for the given PluralOperand.
Base convenience method, equivalent to rule().apply(op). Null values are not allowed.
Return
PluralCategory for the given value.
Parameters
PluralOperand
Determine the PluralCategory for the given numeric String.
Using String or BigDecimal PluralOperands permits the retention of precision (trailing zeros), which can affect localization.
This will return an empty Optional if the String cannot be successfully parsed.
Return
Optional containing the PluralCategory. Empty if String parsing fails.
Parameters
Numeric value, as a String
Throws
if value is null
Determine the PluralCategory for the given Number.
Handled as per PluralOperand.from(Number). Using BigDecimal permits the retention of precision (trailing zeros), unlike doubles or floats, which can affect localization.
Return
PluralCategory for the given value.
Parameters
value as a Number
Throws
if value is null
Determine the PluralCategory for the given double value.
Non-finite values will return PluralCategory.OTHER.
Return
PluralCategory for the given value.
Parameters
value as a double
Determine the PluralCategory for the given long value.
Return
PluralCategory for the given value.
Parameters
value as a long