Enum PluralRules.Operand
- java.lang.Object
-
- java.lang.Enum<PluralRules.Operand>
-
- com.vmware.vipclient.i18n.l2.plural.parser.PluralRules.Operand
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PluralRules.Operand>
- Enclosing class:
- PluralRules
public static enum PluralRules.Operand extends java.lang.Enum<PluralRules.Operand>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description fAll visible fraction digits as an integer, including trailing zeros.iThe integer value, with the fraction digits truncated off.jTHIS OPERAND IS DEPRECATED AND HAS BEEN REMOVED FROM THE SPEC.nThe double value of the entire number.tVisible fraction digits as an integer, not including trailing zeros.vNumber of visible fraction digits.wNumber of visible fraction digits, not including trailing zeros.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PluralRules.OperandvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PluralRules.Operand[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
n
public static final PluralRules.Operand n
The double value of the entire number.
-
i
public static final PluralRules.Operand i
The integer value, with the fraction digits truncated off.
-
f
public static final PluralRules.Operand f
All visible fraction digits as an integer, including trailing zeros.
-
t
public static final PluralRules.Operand t
Visible fraction digits as an integer, not including trailing zeros.
-
v
public static final PluralRules.Operand v
Number of visible fraction digits.
-
w
public static final PluralRules.Operand w
Number of visible fraction digits, not including trailing zeros.
-
j
public static final PluralRules.Operand j
THIS OPERAND IS DEPRECATED AND HAS BEEN REMOVED FROM THE SPEC.
-
-
Method Detail
-
values
public static PluralRules.Operand[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PluralRules.Operand c : PluralRules.Operand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PluralRules.Operand valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-