public enum JavaDataType extends java.lang.Enum<JavaDataType> implements BinaryDataType
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
SHORT |
STRING |
Modifier and Type | Method and Description |
---|---|
static JavaDataType |
fromString(java.lang.String typeStr) |
int |
getByteCount()
Returns the size of data in bytes.
|
int |
getByteCount(int numValues)
Counts the storage area for the given number of values of this type.
|
java.lang.Class |
getTypeClass() |
java.lang.String |
getTypeName() |
boolean |
isNumeric() |
java.lang.String |
toString() |
static JavaDataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaDataType BOOLEAN
public static final JavaDataType BYTE
public static final JavaDataType SHORT
public static final JavaDataType INT
public static final JavaDataType LONG
public static final JavaDataType FLOAT
public static final JavaDataType DOUBLE
public static final JavaDataType CHAR
public static final JavaDataType STRING
public static JavaDataType[] values()
for (JavaDataType c : JavaDataType.values()) System.out.println(c);
public static JavaDataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getByteCount()
BinaryDataType
getByteCount
in interface BinaryDataType
public int getByteCount(int numValues)
BinaryDataType
getByteCount
in interface BinaryDataType
public java.lang.Class getTypeClass()
public java.lang.String getTypeName()
public static JavaDataType fromString(java.lang.String typeStr)
public boolean isNumeric()
public java.lang.String toString()
toString
in class java.lang.Enum<JavaDataType>
Copyright © 2014 EsprIT-Systems. All Rights Reserved.