Enum Class JavaType
- All Implemented Interfaces:
Serializable, Comparable<JavaType>, Constable
B byte signed byte
C char Unicode character code point in the Basic Multilingual Plane,
encoded with UTF-16
D double double-precision floating-point value
F float single-precision floating-point value
I int integer
J long long integer
L ClassName ; reference an instance of class ClassName
S short signed short
Z boolean true or false
[ reference one array dimension
https://stackoverflow.com/questions/32768036/why-is-l-the-prefix-for-reference-types-instead-of-some-other-letter-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> Return the boxed wrapper type for a primitiveClass.final long(package private) final intClass<?> static final JavaTypefinal longmemory()static Class<?> resolveType(String name) static Class<?> Return the primitive type for a boxed wrapperClass.static JavaTypeReturns the enum constant of this class with the specified name.static JavaType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
BYTE
-
CHAR
-
DOUBLE
-
FLOAT
-
INT
-
LONG
-
REFERENCE
4 bytes with 32-bit JVM or 64-bit JVM with compressed pointers (All JVM:s assigned less than 32GB) -
SHORT
-
-
Field Details
-
myInformationBits
private final int myInformationBits -
myJavaClass
-
myMemoryBytes
private final long myMemoryBytes
-
-
Constructor Details
-
JavaType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
box
-
unbox
-
match
-
estimateSizeOfWrapperClass
public final long estimateSizeOfWrapperClass() -
getJavaClass
-
memory
public final long memory() -
getInformationBits
final int getInformationBits() -
resolveType
- Throws:
ClassNotFoundException
-