| Package | Description |
|---|---|
| net.enilink.commons.util |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,ValueType> |
ValueUtils.typeMap |
| Modifier and Type | Method and Description |
|---|---|
ValueType |
ValueUtils.getNumericType(ValueType t1,
ValueType t2,
boolean canBeNonNumeric)
Returns the constant from the NumericTypes interface that best expresses
the type of an operation, which can be either numeric or not, on the two
given types.
|
ValueType |
ValueUtils.getType(Object value) |
static ValueType |
ValueType.max(ValueType t1,
ValueType t2) |
static ValueType |
ValueType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
ValueType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
ValueUtils.createInteger(ValueType type,
long value)
Returns a new Number object of an appropriate type to hold the given
integer value.
|
Number |
ValueUtils.createReal(ValueType type,
double value)
Returns a new Number object of an appropriate type to hold the given real
value.
|
ValueType |
ValueUtils.getNumericType(ValueType t1,
ValueType t2,
boolean canBeNonNumeric)
Returns the constant from the NumericTypes interface that best expresses
the type of an operation, which can be either numeric or not, on the two
given types.
|
static ValueType |
ValueType.max(ValueType t1,
ValueType t2) |
Copyright © 2020 Fraunhofer IWU. All rights reserved.