public final class XTypes extends Object
| Modifier and Type | Method and Description |
|---|---|
static Byte |
asByte(Number value) |
static Double |
asDouble(Number value) |
static Float |
asFloat(Number value) |
static Integer |
asInteger(Number value) |
static Long |
asLong(Number value) |
static Short |
asShort(Number value) |
static TypeMapping<Float> |
createDefaultTypeSimilarity() |
static Class<?> |
directByteBufferClass() |
static ByteBuffer |
guaranteeDirectByteBuffer(ByteBuffer directBuffer) |
static boolean |
isBoolean(Object o) |
static boolean |
isBooleanType(Class<?> c) |
static boolean |
isByteType(Class<?> c) |
static boolean |
isCharacterType(Class<?> c) |
static boolean |
isCharSequenceType(Class<?> c) |
static boolean |
isDecimal(Object o) |
static boolean |
isDecimalType(Class<?> c) |
static boolean |
isDirectByteBuffer(ByteBuffer byteBuffer) |
static boolean |
isDoubleType(Class<?> c) |
static boolean |
isFloatType(Class<?> c) |
static boolean |
isIntegerType(Class<?> c) |
static boolean |
isLiteral(Object o) |
static boolean |
isLiteralType(Class<?> c) |
static boolean |
isLongType(Class<?> c) |
static boolean |
isNaturalNumber(Object o) |
static boolean |
isNaturalNumberType(Class<?> c) |
static boolean |
isNumber(Object o) |
static boolean |
isNumberType(Class<?> c) |
static boolean |
isPrimitiveWrapper(Object o) |
static boolean |
isShortType(Class<?> c) |
static boolean |
isStringType(Class<?> c) |
static boolean |
isValueType(Class<?> c) |
static boolean |
isValueType(Object o)
Checks if the type of the passed instance is an immutable special value type of the java language.
|
static boolean |
to_boolean(byte value) |
static byte |
to_byte(boolean value) |
static int |
to_int(boolean value) |
static int |
to_int(double value) |
static int |
to_int(float value) |
static int |
to_int(long value) |
static int |
to_int(Number value) |
public static final Class<?> directByteBufferClass()
public static final boolean isDirectByteBuffer(ByteBuffer byteBuffer)
public static final ByteBuffer guaranteeDirectByteBuffer(ByteBuffer directBuffer)
public static boolean isBooleanType(Class<?> c)
public static boolean isByteType(Class<?> c)
public static boolean isShortType(Class<?> c)
public static boolean isIntegerType(Class<?> c)
public static boolean isLongType(Class<?> c)
public static boolean isFloatType(Class<?> c)
public static boolean isDoubleType(Class<?> c)
public static boolean isCharacterType(Class<?> c)
public static boolean isStringType(Class<?> c)
public static boolean isCharSequenceType(Class<?> c)
public static boolean isNaturalNumberType(Class<?> c)
public static boolean isDecimalType(Class<?> c)
public static boolean isNumberType(Class<?> c)
public static boolean isLiteralType(Class<?> c)
public static boolean isValueType(Class<?> c)
public static boolean isNaturalNumber(Object o)
public static boolean isNumber(Object o)
public static boolean isDecimal(Object o)
public static boolean isLiteral(Object o)
public static boolean isBoolean(Object o)
public static boolean isValueType(Object o)
String.o - the instance to be checkedtrue if the type of the passed instance is an immutable special value type.public static boolean isPrimitiveWrapper(Object o)
public static final byte to_byte(boolean value)
public static final boolean to_boolean(byte value)
public static final int to_int(boolean value)
public static final int to_int(long value)
throws NumberRangeException
NumberRangeExceptionpublic static final int to_int(float value)
throws NumberRangeException
NumberRangeExceptionpublic static final int to_int(double value)
throws NumberRangeException
NumberRangeExceptionpublic static final int to_int(Number value) throws NumberRangeException, NullPointerException
public static final TypeMapping<Float> createDefaultTypeSimilarity()
Copyright © 2022 MicroStream Software. All rights reserved.