| 程序包 | 说明 |
|---|---|
| cn.taketoday.context.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
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(java.lang.CharSequence text)
|
static DataSize |
DataSize.parse(java.lang.CharSequence text,
DataUnit defaultUnit)
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
DataSize.compareTo(DataSize other) |
Copyright © 2019 TODAY. All rights reserved.