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:
- Serializable, Comparable<NumbersModule.NumberSupport>
- Enclosing class:
- NumbersModule
public static enum NumbersModule.NumberSupport
- extends Enum<NumbersModule.NumberSupport>
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(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getHighestPrecision
public static NumbersModule.NumberSupport getHighestPrecision(Number[] values)
throws InvalidQueryException
- Throws:
InvalidQueryException
castToIntegers
public static Integer[] castToIntegers(Number[] values)
castToFloats
public static Float[] castToFloats(Number[] values)
castToSupportedClass
public static Number castToSupportedClass(Number value)
Copyright © 2000-2012 Ontopia.