Package | Description |
---|---|
org.springframework.util.unit |
Useful unit data types.
|
Modifier and Type | Method and Description |
---|---|
static DataUnit |
DataUnit.fromSuffix(java.lang.String suffix)
Return the
DataUnit matching the specified suffix . |
static DataUnit |
DataUnit.valueOf(java.lang.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(java.lang.CharSequence text,
DataUnit defaultUnit)
|