Uses of Class
io.dropwizard.util.DataSizeUnit
-
Packages that use DataSizeUnit Package Description io.dropwizard.util io.dropwizard.validation -
-
Uses of DataSizeUnit in io.dropwizard.util
Methods in io.dropwizard.util that return DataSizeUnit Modifier and Type Method Description DataSizeUnit
DataSize. getUnit()
Returns thedata size unit
of the currentDataSize
object.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.Methods in io.dropwizard.util with parameters of type DataSizeUnit Modifier and Type Method 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 givenCharSequence
to aDataSize
object. -
Uses of DataSizeUnit in io.dropwizard.validation
Methods in io.dropwizard.validation that return DataSizeUnit Modifier and Type Method Description DataSizeUnit
unit()
The unit of the validated range.DataSizeUnit
unit()
The unit of the annotation.DataSizeUnit
unit()
The unit of the annotation.
-