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) | Obtain a DataSize from a text string such as 12MB using the specified default DataUnit if no unit is specified. |
---|