public static enum Coordinate.RoundingMode extends java.lang.Enum<Coordinate.RoundingMode>
Enum Constant and Description |
---|
ROUND
Value is rounded up or down depending on the number's decimal part.
|
TRUNCATE
The decimal part is discarded.
|
Modifier and Type | Method and Description |
---|---|
static Coordinate.RoundingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Coordinate.RoundingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Coordinate.RoundingMode ROUND
public static final Coordinate.RoundingMode TRUNCATE
public static Coordinate.RoundingMode[] values()
for (Coordinate.RoundingMode c : Coordinate.RoundingMode.values()) System.out.println(c);
public static Coordinate.RoundingMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null