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>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Float[]
castToFloats(Number[] values)
static Integer[]
castToIntegers(Number[] values)
static Number
castToSupportedClass(Number value)
static NumbersModule.NumberSupport
getHighestPrecision(Number[] values)
static NumbersModule.NumberSupport
valueOf(String name)
Returns the enum constant of this type with the specified name.static NumbersModule.NumberSupport[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final NumbersModule.NumberSupport INTEGER
-
FLOAT
public static final NumbersModule.NumberSupport FLOAT
-
-
Method Detail
-
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 nameNullPointerException
- if the argument is null
-
getHighestPrecision
public static NumbersModule.NumberSupport getHighestPrecision(Number[] values) throws InvalidQueryException
- Throws:
InvalidQueryException
-
-