Serializable
, Comparable<BinaryPrefix>
, Prefix
public enum BinaryPrefix extends Enum<BinaryPrefix> implements Prefix
Enum Constant | Description |
---|---|
EXBI |
Prefix for 10246.
|
GIBI |
Prefix for 10243.
|
KIBI |
Prefix for 1024.
|
MEBI |
Prefix for 10242.
|
PEBI |
Prefix for 10245.
|
TEBI |
Prefix for 10244.
|
YOBI |
Prefix for 10248.
|
ZEBI |
Prefix for 10247.
|
Modifier and Type | Method | Description |
---|---|---|
static <Q extends Quantity<Q>> |
EXBI(Unit<Q> unit) |
Returns the specified unit multiplied by the factor
10246 (binary prefix). |
int |
getBase() |
Base part of the associated factor in base^exponent representation.
|
int |
getExponent() |
Exponent part of the associated factor in base^exponent representation.
|
String |
getName() |
Returns the name of this prefix.
|
String |
getSymbol() |
Returns the symbol of this prefix.
|
static <Q extends Quantity<Q>> |
GIBI(Unit<Q> unit) |
Returns the specified unit multiplied by the factor
10243 (binary prefix). |
static <Q extends Quantity<Q>> |
KIBI(Unit<Q> unit) |
Returns the specified unit multiplied by the factor
1024 (binary prefix). |
static <Q extends Quantity<Q>> |
MEBI(Unit<Q> unit) |
Returns the specified unit multiplied by the factor
10242 (binary prefix). |
static <Q extends Quantity<Q>> |
PEBI(Unit<Q> unit) |
Returns the specified unit multiplied by the factor
10245 (binary prefix). |
static <Q extends Quantity<Q>> |
TEBI(Unit<Q> unit) |
Returns the specified unit multiplied by the factor
10244 (binary prefix). |
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.
|
static <Q extends Quantity<Q>> |
YOBI(Unit<Q> unit) |
Returns the specified unit multiplied by the factor
10248 (binary prefix). |
static <Q extends Quantity<Q>> |
ZEBI(Unit<Q> unit) |
Returns the specified unit multiplied by the factor
10247 (binary prefix). |
public static final BinaryPrefix KIBI
public static final BinaryPrefix MEBI
public static final BinaryPrefix GIBI
public static final BinaryPrefix TEBI
public static final BinaryPrefix PEBI
public static final BinaryPrefix EXBI
public static final BinaryPrefix ZEBI
public static final BinaryPrefix YOBI
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 <Q extends Quantity<Q>> Unit<Q> KIBI(Unit<Q> unit)
1024
(binary prefix).Q
- type of the quantity measured by the unit.unit
- any unit.unit.multiply(1024)
.public static <Q extends Quantity<Q>> Unit<Q> MEBI(Unit<Q> unit)
10242
(binary prefix).Q
- type of the quantity measured by the unit.unit
- any unit.unit.multiply(1048576)
.public static <Q extends Quantity<Q>> Unit<Q> GIBI(Unit<Q> unit)
10243
(binary prefix).Q
- type of the quantity measured by the unit.unit
- any unit.unit.multiply(1073741824)
.public static <Q extends Quantity<Q>> Unit<Q> TEBI(Unit<Q> unit)
10244
(binary prefix).Q
- type of the quantity measured by the unit.unit
- any unit.unit.multiply(1099511627776L)
.public static <Q extends Quantity<Q>> Unit<Q> PEBI(Unit<Q> unit)
10245
(binary prefix).Q
- type of the quantity measured by the unit.unit
- any unit.unit.multiply(1125899906842624L)
.public static <Q extends Quantity<Q>> Unit<Q> EXBI(Unit<Q> unit)
10246
(binary prefix).Q
- type of the quantity measured by the unit.unit
- any unit.unit.multiply(1152921504606846976L)
.public static <Q extends Quantity<Q>> Unit<Q> ZEBI(Unit<Q> unit)
10247
(binary prefix).Q
- type of the quantity measured by the unit.unit
- any unit.unit.multiply(1152921504606846976d)
.public static <Q extends Quantity<Q>> Unit<Q> YOBI(Unit<Q> unit)
10248
(binary prefix).Q
- type of the quantity measured by the unit.unit
- any unit.unit.multiply(1208925819614629174706176d)
.public int getBase()
public int getExponent()
getExponent
in interface Prefix
Copyright © 2014–2019 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.