| Package | Description |
|---|---|
| com.peterphi.std.types |
| Modifier and Type | Field and Description |
|---|---|
static StorageSize |
StorageSize.ZERO |
| Modifier and Type | Method and Description |
|---|---|
StorageSize |
StorageSize.add(StorageSize that)
Adds two storage sizes together, using the smallest unit as the resulting StorageSize's unit
|
StorageSize |
StorageSize.convert(StorageUnit toUnit)
Convert this StorageSize to use the named unit
|
StorageSize |
StorageSize.multiply(java.math.BigInteger by)
Multiplies the storage size by a certain amount
|
StorageSize |
StorageSize.subtract(StorageSize that)
Subtracts a storage size from the current object, using the smallest unit as the resulting StorageSize's unit
|
| Modifier and Type | Method and Description |
|---|---|
StorageSize |
StorageSize.add(StorageSize that)
Adds two storage sizes together, using the smallest unit as the resulting StorageSize's unit
|
int |
StorageSize.compareTo(StorageSize that)
Performs a comparison based on the number of bits represented
Since this class has a natural ordering that is inconsistent with equals, this method may return 0 where equals would not return 0 - since this compares based on bits but equals tests based on the
unit+amount |
StorageSize |
StorageSize.subtract(StorageSize that)
Subtracts a storage size from the current object, using the smallest unit as the resulting StorageSize's unit
|
Copyright © 2014. All Rights Reserved.