U - The unit of measurement@Immutable public final class Size<U extends SizeUnitType> extends Object
| Constructor and Description |
|---|
Size(BigInteger in_value)
Construct a size value.
|
| Modifier and Type | Method and Description |
|---|---|
Size<U> |
add(Size<U> size) |
boolean |
equals(Object o) |
BigInteger |
getValue() |
int |
hashCode() |
static Size<SizeUnitBitsType> |
toBits(Size<SizeUnitOctetsType> size) |
String |
toString() |
static <U extends SizeUnitType> |
valueOf(long x)
Construct a size value of
x units. |
static <U extends SizeUnitType> |
zero() |
public Size(BigInteger in_value)
in_value - The sizepublic static <U extends SizeUnitType> Size<U> zero()
U - The unit of measurementpublic static Size<SizeUnitBitsType> toBits(Size<SizeUnitOctetsType> size)
size - A size value in octetspublic static <U extends SizeUnitType> Size<U> valueOf(long x)
x units.U - The precise unit typex - The size valuepublic BigInteger getValue()
Copyright © 2015 <code@io7m.com> http://io7m.com