public enum SizeOf extends Enum<SizeOf>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
MARK_WORD |
OBJECT_POINTER |
SHORT |
Modifier and Type | Method and Description |
---|---|
byte |
getNumOfBytes() |
static SizeOf |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SizeOf[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SizeOf MARK_WORD
public static final SizeOf OBJECT_POINTER
public static final SizeOf BYTE
public static final SizeOf BOOLEAN
public static final SizeOf SHORT
public static final SizeOf CHAR
public static final SizeOf INT
public static final SizeOf FLOAT
public static final SizeOf LONG
public static final SizeOf DOUBLE
public static SizeOf[] values()
for (SizeOf c : SizeOf.values()) System.out.println(c);
public static SizeOf 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 byte getNumOfBytes()
Copyright © 2020. All rights reserved.