Package com.ibm.icu.impl.number
Enum Padder.PadPosition
- java.lang.Object
-
- java.lang.Enum<Padder.PadPosition>
-
- com.ibm.icu.impl.number.Padder.PadPosition
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Padder.PadPosition>
- Enclosing class:
- Padder
public static enum Padder.PadPosition extends java.lang.Enum<Padder.PadPosition>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_PREFIX
AFTER_SUFFIX
BEFORE_PREFIX
BEFORE_SUFFIX
-
Constructor Summary
Constructors Modifier Constructor Description private
PadPosition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Padder.PadPosition
fromOld(int old)
int
toOld()
static Padder.PadPosition
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Padder.PadPosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_PREFIX
public static final Padder.PadPosition BEFORE_PREFIX
-
AFTER_PREFIX
public static final Padder.PadPosition AFTER_PREFIX
-
BEFORE_SUFFIX
public static final Padder.PadPosition BEFORE_SUFFIX
-
AFTER_SUFFIX
public static final Padder.PadPosition AFTER_SUFFIX
-
-
Method Detail
-
values
public static Padder.PadPosition[] 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 (Padder.PadPosition c : Padder.PadPosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Padder.PadPosition 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
-
fromOld
public static Padder.PadPosition fromOld(int old)
-
toOld
public int toOld()
-
-