public class DataSizes extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
ONE_EB
The number of bytes in an exabyte.
|
static BigInteger |
ONE_EB_BI
The number of bytes in an exabyte.
|
static long |
ONE_GB
The number of bytes in a gigabyte.
|
static BigInteger |
ONE_GB_BI
The number of bytes in a gigabyte.
|
static long |
ONE_KB
The number of bytes in a kilobyte.
|
static BigInteger |
ONE_KB_BI
The number of bytes in a kilobyte.
|
static long |
ONE_MB
The number of bytes in a megabyte.
|
static BigInteger |
ONE_MB_BI
The number of bytes in a megabyte.
|
static long |
ONE_PB
The number of bytes in a petabyte.
|
static BigInteger |
ONE_PB_BI
The number of bytes in a petabyte.
|
static long |
ONE_TB
The number of bytes in a terabyte.
|
static BigInteger |
ONE_TB_BI
The number of bytes in a terabyte.
|
static BigInteger |
ONE_YB
The number of bytes in a yottabyte.
|
static BigInteger |
ONE_ZB
The number of bytes in a zettabyte.
|
| 构造器和说明 |
|---|
DataSizes() |
public static final long ONE_KB
public static final BigInteger ONE_KB_BI
public static final long ONE_MB
public static final BigInteger ONE_MB_BI
public static final long ONE_GB
public static final BigInteger ONE_GB_BI
public static final long ONE_TB
public static final BigInteger ONE_TB_BI
public static final long ONE_PB
public static final BigInteger ONE_PB_BI
public static final long ONE_EB
public static final BigInteger ONE_EB_BI
public static final BigInteger ONE_ZB
public static final BigInteger ONE_YB
public static String byteCountToDisplaySize(BigInteger size)
public static String byteCountToDisplaySize(long size)
Copyright © 2022. All rights reserved.