|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PrimitiveTypeSize>
tecgraf.ftc_1_2.common.logic.PrimitiveTypeSize
public enum PrimitiveTypeSize
Contém o tamanho em bytes dos tipos primitivos.
| Enum Constant Summary | |
|---|---|
BYTE
Tipo Byte. |
|
INTEGER
Tipo Integer. |
|
LONG
Tipo Long. |
|
SHORT
Tipo Short. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PrimitiveTypeSize BYTE
Byte.
public static final PrimitiveTypeSize SHORT
Short.
public static final PrimitiveTypeSize INTEGER
Integer.
public static final PrimitiveTypeSize LONG
Long.
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||