public enum BinaryPrefix extends Enum<BinaryPrefix>
| Modifier and Type | Method and Description |
|---|---|
static String |
formatBinary(long size) |
static String |
formatDecimal(long size) |
int |
getBase() |
int |
getExponent() |
static long |
parse(String s) |
long |
size() |
static BinaryPrefix |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BinaryPrefix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BinaryPrefix K
public static final BinaryPrefix k
public static final BinaryPrefix M
public static final BinaryPrefix G
public static final BinaryPrefix T
public static final BinaryPrefix P
public static final BinaryPrefix Ki
public static final BinaryPrefix Mi
public static final BinaryPrefix Gi
public static final BinaryPrefix Ti
public static final BinaryPrefix Pi
public static BinaryPrefix[] values()
for (BinaryPrefix c : BinaryPrefix.values()) System.out.println(c);
public static BinaryPrefix 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 static long parse(String s)
public static String formatBinary(long size)
public static String formatDecimal(long size)
public int getBase()
public int getExponent()
public long size()
Copyright © 2020. All rights reserved.