Package ch.obermuhlner.math.big
Enum BigFloat.SpecialBigFloat.Type
- java.lang.Object
-
- java.lang.Enum<BigFloat.SpecialBigFloat.Type>
-
- ch.obermuhlner.math.big.BigFloat.SpecialBigFloat.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BigFloat.SpecialBigFloat.Type>
- Enclosing class:
- BigFloat.SpecialBigFloat
static enum BigFloat.SpecialBigFloat.Type extends java.lang.Enum<BigFloat.SpecialBigFloat.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NaN
NEGATIVE_INFINITY
NORMAL
POSITIVE_INFINITY
-
Field Summary
Fields Modifier and Type Field Description (package private) int
hashCode
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(int hashCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
compare(BigFloat.SpecialBigFloat.Type a, BigFloat.SpecialBigFloat.Type b)
double
toDouble()
convert type to doublestatic BigFloat.SpecialBigFloat.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BigFloat.SpecialBigFloat.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NaN
public static final BigFloat.SpecialBigFloat.Type NaN
-
POSITIVE_INFINITY
public static final BigFloat.SpecialBigFloat.Type POSITIVE_INFINITY
-
NORMAL
public static final BigFloat.SpecialBigFloat.Type NORMAL
-
NEGATIVE_INFINITY
public static final BigFloat.SpecialBigFloat.Type NEGATIVE_INFINITY
-
-
Method Detail
-
values
public static BigFloat.SpecialBigFloat.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BigFloat.SpecialBigFloat.Type c : BigFloat.SpecialBigFloat.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BigFloat.SpecialBigFloat.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
compare
public static int compare(BigFloat.SpecialBigFloat.Type a, BigFloat.SpecialBigFloat.Type b)
-
toDouble
public double toDouble()
convert type to double- Returns:
- double value that equivalent to
BigFloat.SpecialBigFloat.Type
-
-