/** * Returns the size in bits. The value range from 1 to 64. This is similar, but different than * {@link DataBuffer#getDataTypeSize}, which have values ranging from 8 to 64. */ public static int getSize(final SampleDimensionType type) { return map(type).size; }
/** Returns {@code true} for floating-point data type. */ public static boolean isFloatingPoint(final SampleDimensionType type) { return map(type).real; }
/** Returns {@code true} for signed sample type. */ public static boolean isSigned(final SampleDimensionType type) { return map(type).signed; }
final TypeMap map = map(type); int ordinal = map.size; if (map.real) {
/** * Returns {@code true} for floating-point data type. */ public static boolean isFloatingPoint(final SampleDimensionType type) { return map(type).real; }
/** * Returns {@code true} for signed sample type. */ public static boolean isSigned(final SampleDimensionType type) { return map(type).signed; }
/** * Returns {@code true} for signed sample type. */ public static boolean isSigned(final SampleDimensionType type) { return map(type).signed; }
/** * Returns the size in bits. The value range from 1 to 64. This is similar, but * different than {@link DataBuffer#getDataTypeSize}, which have values ranging * from 8 to 64. */ public static int getSize(final SampleDimensionType type) { return map(type).size; }
/** * Returns {@code true} for floating-point data type. */ public static boolean isFloatingPoint(final SampleDimensionType type) { return map(type).real; }
/** * Returns the size in bits. The value range from 1 to 64. This is similar, but * different than {@link DataBuffer#getDataTypeSize}, which have values ranging * from 8 to 64. */ public static int getSize(final SampleDimensionType type) { return map(type).size; }
final TypeMap map = map(type); int ordinal = map.size; if (map.real) {
final TypeMap map = map(type); int ordinal = map.size; if (map.real) {