Package | Description |
---|---|
io.dropwizard.util |
Modifier and Type | Method and Description |
---|---|
DataSizeUnit |
DataSize.getUnit() |
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) |
Copyright © 2020. All rights reserved.