public static enum RoundFunction.RoundStrategy extends java.lang.Enum<RoundFunction.RoundStrategy>
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
round(java.math.BigDecimal number,
int precision) |
static RoundFunction.RoundStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RoundFunction.RoundStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoundFunction.RoundStrategy COMMON
public static final RoundFunction.RoundStrategy CEIL
public static final RoundFunction.RoundStrategy FLOOR
public static RoundFunction.RoundStrategy[] values()
for (RoundFunction.RoundStrategy c : RoundFunction.RoundStrategy.values()) System.out.println(c);
public static RoundFunction.RoundStrategy 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 nullpublic java.math.BigDecimal round(java.math.BigDecimal number, int precision)