net.ontopia.topicmaps.query.impl.basic
Enum NumbersModule.NumberSupport
java.lang.Object
java.lang.Enum<NumbersModule.NumberSupport>
net.ontopia.topicmaps.query.impl.basic.NumbersModule.NumberSupport
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<NumbersModule.NumberSupport>
- Enclosing class:
- NumbersModule
public static enum NumbersModule.NumberSupport
- extends java.lang.Enum<NumbersModule.NumberSupport>
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 |
INTEGER
public static final NumbersModule.NumberSupport INTEGER
FLOAT
public static final NumbersModule.NumberSupport FLOAT
values
public static NumbersModule.NumberSupport[] 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 (NumbersModule.NumberSupport c : NumbersModule.NumberSupport.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NumbersModule.NumberSupport 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
getHighestPrecision
public static NumbersModule.NumberSupport getHighestPrecision(java.lang.Number[] values)
throws InvalidQueryException
- Throws:
InvalidQueryException
castToIntegers
public static java.lang.Integer[] castToIntegers(java.lang.Number[] values)
castToFloats
public static java.lang.Float[] castToFloats(java.lang.Number[] values)
castToSupportedClass
public static java.lang.Number castToSupportedClass(java.lang.Number value)
Copyright © 2000-2012 Ontopia.