Package w.util
Enum Class ByteUnit
- All Implemented Interfaces:
Serializable,Comparable<ByteUnit>,Constable
- Author:
- whilein
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiondoublelongdoubletoGibi(double bytes) longtoGibi(long bytes) doubletoKibi(double bytes) longtoKibi(long bytes) doubletoMebi(double bytes) longtoMebi(long bytes) doubletoTebi(double bytes) longtoTebi(long bytes) doubletoUno(double bytes) longtoUno(long bytes) static ByteUnitReturns the enum constant of this class with the specified name.static ByteUnit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNO
-
KIBI
-
MEBI
-
GIBI
-
TEBI
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toUno
public double toUno(double bytes) -
toKibi
public double toKibi(double bytes) -
toMebi
public double toMebi(double bytes) -
toGibi
public double toGibi(double bytes) -
toTebi
public double toTebi(double bytes) -
toUno
public long toUno(long bytes) -
toKibi
public long toKibi(long bytes) -
toMebi
public long toMebi(long bytes) -
toGibi
public long toGibi(long bytes) -
toTebi
public long toTebi(long bytes) -
convert
-
convert
-