Package | Description |
---|---|
org.springframework.util.unit |
Useful unit data types.
|
Modifier and Type | Method and Description |
---|---|
static DataUnit |
DataUnit.fromSuffix(String suffix)
Return the
DataUnit matching the specified suffix . |
static DataUnit |
DataUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataUnit[] |
DataUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static DataSize |
DataSize.of(long amount,
DataUnit unit)
|
static DataSize |
DataSize.parse(CharSequence text,
DataUnit defaultUnit)
|