Package com.aoindustries.io
Enum ByteCount.Unit
- java.lang.Object
-
- java.lang.Enum<ByteCount.Unit>
-
- com.aoindustries.io.ByteCount.Unit
-
- All Implemented Interfaces:
Serializable,Comparable<ByteCount.Unit>
- Enclosing class:
- ByteCount
public static enum ByteCount.Unit extends Enum<ByteCount.Unit>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCoefficient()StringgetName()StringtoString()static ByteCount.UnitvalueOf(String name)Returns the enum constant of this type with the specified name.static ByteCount.Unit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final ByteCount.Unit BYTE
-
KBYTE
public static final ByteCount.Unit KBYTE
-
KIBYTE
public static final ByteCount.Unit KIBYTE
-
MBYTE
public static final ByteCount.Unit MBYTE
-
MIBYTE
public static final ByteCount.Unit MIBYTE
-
GBYTE
public static final ByteCount.Unit GBYTE
-
GIBYTE
public static final ByteCount.Unit GIBYTE
-
TBYTE
public static final ByteCount.Unit TBYTE
-
TIBYTE
public static final ByteCount.Unit TIBYTE
-
PBYTE
public static final ByteCount.Unit PBYTE
-
PIBYTE
public static final ByteCount.Unit PIBYTE
-
EBYTE
public static final ByteCount.Unit EBYTE
-
EIBYTE
public static final ByteCount.Unit EIBYTE
-
-
Method Detail
-
values
public static ByteCount.Unit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ByteCount.Unit c : ByteCount.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteCount.Unit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<ByteCount.Unit>
-
getName
public String getName()
-
getCoefficient
public long getCoefficient()
-
-