public enum Precision extends Enum<Precision>
Precision enum represents the number of places after
the decimal point in a decimal number.| Enum Constant and Description |
|---|
EIGHT |
FIVE |
FOUR |
NINE |
ONE |
SEVEN |
SIX |
THREE |
TWO |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
protected String |
format(double n) |
static Precision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Precision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Precision ZERO
public static final Precision ONE
public static final Precision TWO
public static final Precision THREE
public static final Precision FOUR
public static final Precision FIVE
public static final Precision SIX
public static final Precision SEVEN
public static final Precision EIGHT
public static final Precision NINE
public static Precision[] values()
for (Precision c : Precision.values()) System.out.println(c);
public static Precision 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 nullprotected String format(double n)
Copyright © 2016. All rights reserved.