| Package | Description |
|---|---|
| org.springframework.util.unit |
Useful unit data types.
|
| Modifier and Type | Method and Description |
|---|---|
static DataSize |
DataSize.of(long amount,
DataUnit unit)
|
static DataSize |
DataSize.ofBytes(long bytes)
Obtain a
DataSize representing the specified number of bytes. |
static DataSize |
DataSize.ofGigabytes(long gigabytes)
Obtain a
DataSize representing the specified number of gigabytes. |
static DataSize |
DataSize.ofKilobytes(long kilobytes)
Obtain a
DataSize representing the specified number of kilobytes. |
static DataSize |
DataSize.ofMegabytes(long megabytes)
Obtain a
DataSize representing the specified number of megabytes. |
static DataSize |
DataSize.ofTerabytes(long terabytes)
Obtain a
DataSize representing the specified number of terabytes. |
static DataSize |
DataSize.parse(CharSequence text)
|
static DataSize |
DataSize.parse(CharSequence text,
DataUnit defaultUnit)
|
| Modifier and Type | Method and Description |
|---|---|
int |
DataSize.compareTo(DataSize other) |