public enum ByteName extends Enum<ByteName>
| Enum Constant and Description |
|---|
Byte
Байт
|
GigaByte
Гигабайт
|
KiloByte
Килобайт
|
MegaByte
Мегабайт
|
PetaByte
Петабайт
|
TeraByte
Терабайт
|
| Modifier and Type | Method and Description |
|---|---|
long |
getSize()
Размер определяемый суфиксом в байтах
|
String |
getSuffix()
Суффикс используемый в обозначении
|
static ByteName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteName Byte
public static final ByteName KiloByte
public static final ByteName MegaByte
public static final ByteName GigaByte
public static final ByteName TeraByte
public static final ByteName PetaByte
public static ByteName[] values()
for (ByteName c : ByteName.values()) System.out.println(c);
public static ByteName 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 long getSize()
public String getSuffix()
Copyright © 2018. All rights reserved.