public final class TypeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NULL_HASH_CODE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsDistinctType(List<Type> types)
Recursive version of isDistinctType.
|
static long |
hashPosition(Type type,
Block block,
int position) |
static boolean |
isApproximateNumericType(Type type) |
static boolean |
isDistinctType(Type type) |
static boolean |
isEnumType(Type type) |
static boolean |
isExactNumericType(Type type) |
static boolean |
isFloatingPointNaN(Type type,
Object value) |
static boolean |
isNonDecimalNumericType(Type type) |
static boolean |
isNumericType(Type type) |
static Object |
readNativeValue(Type type,
Block block,
int position)
Get the native value as an object in the value at
position of block. |
static void |
writeNativeValue(Type type,
BlockBuilder blockBuilder,
Object value)
Write a native value object to the current entry of
blockBuilder. |
public static final int NULL_HASH_CODE
public static boolean isNumericType(Type type)
public static boolean isNonDecimalNumericType(Type type)
public static boolean isExactNumericType(Type type)
public static boolean isApproximateNumericType(Type type)
public static boolean isEnumType(Type type)
public static boolean isDistinctType(Type type)
public static boolean containsDistinctType(List<Type> types)
public static Object readNativeValue(Type type, Block block, int position)
position of block.public static void writeNativeValue(Type type, BlockBuilder blockBuilder, Object value)
blockBuilder.Copyright © 2012–2022. All rights reserved.