javax.measure.unit
Class NonSI.BinaryPrefix

java.lang.Object
  extended by javax.measure.unit.NonSI.BinaryPrefix
Enclosing class:
NonSI

public static class NonSI.BinaryPrefix
extends java.lang.Object

Inner class holding binary prefixes.


Method Summary
static
<Q extends Quantity>
Unit<Q>
EXBI(Unit<Q> unit)
          Returns the specified unit multiplied by the factor 260 (binary prefix).
static
<Q extends Quantity>
Unit<Q>
GIBI(Unit<Q> unit)
          Returns the specified unit multiplied by the factor 230 (binary prefix).
static
<Q extends Quantity>
Unit<Q>
KIBI(Unit<Q> unit)
          Returns the specified unit multiplied by the factor 210 (binary prefix).
static
<Q extends Quantity>
Unit<Q>
MEBI(Unit<Q> unit)
          Returns the specified unit multiplied by the factor 220 (binary prefix).
static
<Q extends Quantity>
Unit<Q>
PEBI(Unit<Q> unit)
          Returns the specified unit multiplied by the factor 250 (binary prefix).
static
<Q extends Quantity>
Unit<Q>
TEBI(Unit<Q> unit)
          Returns the specified unit multiplied by the factor 240 (binary prefix).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

KIBI

public static <Q extends Quantity> Unit<Q> KIBI(Unit<Q> unit)
Returns the specified unit multiplied by the factor 210 (binary prefix).

Parameters:
unit - any unit.
Returns:
unit.times(1024).

MEBI

public static <Q extends Quantity> Unit<Q> MEBI(Unit<Q> unit)
Returns the specified unit multiplied by the factor 220 (binary prefix).

Parameters:
unit - any unit.
Returns:
unit.times(1048576).

GIBI

public static <Q extends Quantity> Unit<Q> GIBI(Unit<Q> unit)
Returns the specified unit multiplied by the factor 230 (binary prefix).

Parameters:
unit - any unit.
Returns:
unit.times(1073741824).

TEBI

public static <Q extends Quantity> Unit<Q> TEBI(Unit<Q> unit)
Returns the specified unit multiplied by the factor 240 (binary prefix).

Parameters:
unit - any unit.
Returns:
unit.times(1099511627776L).

PEBI

public static <Q extends Quantity> Unit<Q> PEBI(Unit<Q> unit)
Returns the specified unit multiplied by the factor 250 (binary prefix).

Parameters:
unit - any unit.
Returns:
unit.times(1125899906842624L).

EXBI

public static <Q extends Quantity> Unit<Q> EXBI(Unit<Q> unit)
Returns the specified unit multiplied by the factor 260 (binary prefix).

Parameters:
unit - any unit.
Returns:
unit.times(1152921504606846976L).


Copyright © 2009 JScience. All Rights Reserved.