| Modifier and Type | Method and Description |
|---|---|
static DataSize |
DataSize.bytes(long count)
Constructs a new
DataSize object representing the specified amount of bytes. |
static DataSize |
DataSize.fromSize(Size size)
|
static DataSize |
DataSize.gibibytes(long count)
Constructs a new
DataSize object representing the specified amount of gibibytes. |
static DataSize |
DataSize.gigabytes(long count)
Constructs a new
DataSize object representing the specified amount of gigabytes. |
static DataSize |
DataSize.kibibytes(long count)
Constructs a new
DataSize object representing the specified amount of kibibytes. |
static DataSize |
DataSize.kilobytes(long count)
Constructs a new
DataSize object representing the specified amount of kilobytes. |
static DataSize |
DataSize.mebibytes(long count)
Constructs a new
DataSize object representing the specified amount of mebibytes. |
static DataSize |
DataSize.megabytes(long count)
Constructs a new
DataSize object representing the specified amount of megabytes. |
static DataSize |
DataSize.parse(CharSequence size)
Parses a given
CharSequence to a DataSize object. |
static DataSize |
DataSize.parse(CharSequence size,
DataSizeUnit defaultUnit)
Parses a given
CharSequence to a DataSize object. |
static DataSize |
DataSize.pebibytes(long count)
Constructs a new
DataSize object representing the specified amount of pebibytes. |
static DataSize |
DataSize.petabytes(long count)
Constructs a new
DataSize object representing the specified amount of petabytes. |
static DataSize |
DataSize.tebibytes(long count)
Constructs a new
DataSize object representing the specified amount of tebibytes. |
static DataSize |
DataSize.terabytes(long count)
Constructs a new
DataSize object representing the specified amount of terabytes. |
DataSize |
Size.toDataSize()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DataSize.compareTo(DataSize other) |
static Size |
Size.fromDataSize(DataSize dataSize)
Deprecated.
|
Copyright © 2011. All rights reserved.