public enum JavaType extends Enum<JavaType>
Enum Constant and Description |
---|
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 |
Modifier and Type | Method and Description |
---|---|
long |
estimateSizeOfWrapperClass() |
static JavaType |
match(Class<?> aClass) |
long |
memory() |
static JavaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaType BOOLEAN
public static final JavaType BYTE
public static final JavaType CHAR
public static final JavaType DOUBLE
public static final JavaType FLOAT
public static final JavaType INT
public static final JavaType LONG
public static final JavaType REFERENCE
public static final JavaType SHORT
public static JavaType[] values()
for (JavaType c : JavaType.values()) System.out.println(c);
public static JavaType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final long estimateSizeOfWrapperClass()
public final long memory()
Copyright © 2019 Optimatika. All rights reserved.