Enum Precision
- java.lang.Object
-
- java.lang.Enum<Precision>
-
- ru.ispras.microtesk.model.data.floatx.Precision
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Precision
find(int fractionSize, int exponentSize)
int
getExponentSize()
int
getFractionSize()
abstract ru.ispras.microtesk.model.data.floatx.Operations
getOperations()
int
getSize()
java.lang.String
getText()
static Precision
valueOf(java.lang.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.
-
-
-
Method Detail
-
values
public static Precision[] 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 (Precision c : Precision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Precision 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
-
getFractionSize
public final int getFractionSize()
-
getExponentSize
public final int getExponentSize()
-
getSize
public final int getSize()
-
getText
public final java.lang.String getText()
-
getOperations
public abstract ru.ispras.microtesk.model.data.floatx.Operations getOperations()
-
find
public static Precision find(int fractionSize, int exponentSize)
-
-