org.semanticweb.HermiT.datatypes.owlreal
Enum Numbers.NumberType

java.lang.Object
  extended by java.lang.Enum<Numbers.NumberType>
      extended by org.semanticweb.HermiT.datatypes.owlreal.Numbers.NumberType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Numbers.NumberType>
Enclosing class:
Numbers

protected static enum Numbers.NumberType
extends java.lang.Enum<Numbers.NumberType>


Enum Constant Summary
BIG_DECIMAL
           
BIG_INTEGER
           
BIG_RATIONAL
           
INTEGER
           
LONG
           
 
Method Summary
protected static Numbers.NumberType getMaxNumberType(Numbers.NumberType typeN1, Numbers.NumberType typeN2)
           
protected static Numbers.NumberType getNumberTypeFor(java.lang.Number n)
           
static Numbers.NumberType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Numbers.NumberType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INTEGER

public static final Numbers.NumberType INTEGER

LONG

public static final Numbers.NumberType LONG

BIG_INTEGER

public static final Numbers.NumberType BIG_INTEGER

BIG_DECIMAL

public static final Numbers.NumberType BIG_DECIMAL

BIG_RATIONAL

public static final Numbers.NumberType BIG_RATIONAL
Method Detail

values

public static Numbers.NumberType[] 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 (Numbers.NumberType c : Numbers.NumberType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Numbers.NumberType 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 name
java.lang.NullPointerException - if the argument is null

getMaxNumberType

protected static Numbers.NumberType getMaxNumberType(Numbers.NumberType typeN1,
                                                     Numbers.NumberType typeN2)

getNumberTypeFor

protected static Numbers.NumberType getNumberTypeFor(java.lang.Number n)