public enum PrimitiveTypeSize extends Enum<PrimitiveTypeSize>
| Enum Constant and Description |
|---|
BYTE
Tipo
Byte. |
INTEGER
Tipo
Integer. |
LONG
Tipo
Long. |
SHORT
Tipo
Short. |
| Modifier and Type | Method and Description |
|---|---|
int |
getSize()
Obtém o tamanho do tipo em bytes.
|
static PrimitiveTypeSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveTypeSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveTypeSize BYTE
Byte.public static final PrimitiveTypeSize SHORT
Short.public static final PrimitiveTypeSize INTEGER
Integer.public static final PrimitiveTypeSize LONG
Long.public static PrimitiveTypeSize[] values()
for (PrimitiveTypeSize c : PrimitiveTypeSize.values()) System.out.println(c);
public static PrimitiveTypeSize 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 int getSize()
Copyright © 2019 Tecgraf/PUC-Rio. All rights reserved.