public enum RoundingMode extends Enum<RoundingMode> implements SphereEnumeration
Enum Constant and Description |
---|
HALF_DOWN
Round half down.
|
HALF_EVEN
Round half to even.
|
HALF_UP
Round half up.
|
Modifier and Type | Method and Description |
---|---|
static RoundingMode |
ofSphereValue(String value) |
static RoundingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoundingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
findBySphereName, name, toSphereName
public static final RoundingMode HALF_EVEN
public static final RoundingMode HALF_UP
public static final RoundingMode HALF_DOWN
public static RoundingMode[] values()
for (RoundingMode c : RoundingMode.values()) System.out.println(c);
public static RoundingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static RoundingMode ofSphereValue(String value)