public enum MathContext extends Enum<MathContext> implements StringValue<MathContext>
| Modifier and Type | Method and Description |
|---|---|
static MathContext |
fromValue(String v) |
String |
toString() |
String |
value() |
static MathContext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MathContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MathContext FLOAT
public static final MathContext DOUBLE
public static MathContext[] values()
for (MathContext c : MathContext.values()) System.out.println(c);
public static MathContext 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 String value()
value in interface StringValue<MathContext>public static MathContext fromValue(String v)
public String toString()
toString in class Enum<MathContext>Copyright © 2024. All rights reserved.