| Enum Constant and Description |
|---|
BIG
Normal
|
HUGE
Grande
|
NORMAL
Normal
|
SMALL
Pequeno
|
TINY
Mínimo
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Consulta o texto da descrição.
|
int |
getSize()
Consulta tamanho em bytes
|
int |
getSizeKb()
Consulta tamanho em bytes
|
java.lang.String |
toString() |
static BlockSize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockSize TINY
public static final BlockSize SMALL
public static final BlockSize NORMAL
public static final BlockSize BIG
public static final BlockSize HUGE
public static BlockSize[] values()
for (BlockSize c : BlockSize.values()) System.out.println(c);
public static BlockSize valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public final int getSize()
public final int getSizeKb()
public final java.lang.String toString()
toString in class java.lang.Enum<BlockSize>Copyright © 2018. All Rights Reserved.