| Modifier and Type | Method and Description |
|---|---|
DataSizeUnit |
DataSize.getUnit()
Returns the
data size unit of the current DataSize object. |
DataSizeUnit |
SizeUnit.toDataSizeUnit()
Deprecated.
Convert this size unit into a data size unit with correct SI and IEC prefix.
|
static DataSizeUnit |
DataSizeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataSizeUnit[] |
DataSizeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
long |
DataSizeUnit.convert(long size,
DataSizeUnit unit)
Converts a size of the given unit into the current unit.
|
static DataSize |
DataSize.parse(CharSequence size,
DataSizeUnit defaultUnit)
Parses a given
CharSequence to a DataSize object. |
Copyright © 2011. All rights reserved.