public class ByteSizeValue extends Object implements Serializable
| Constructor and Description |
|---|
ByteSizeValue(long bytes) |
ByteSizeValue(long size,
ByteSizeUnit sizeUnit) |
| Modifier and Type | Method and Description |
|---|---|
long |
bytes() |
boolean |
equals(Object o) |
long |
gb() |
double |
gbFrac() |
long |
getBytes() |
long |
getGb() |
double |
getGbFrac() |
long |
getKb() |
double |
getKbFrac() |
long |
getMb() |
double |
getMbFrac() |
int |
hashCode() |
long |
kb() |
double |
kbFrac() |
long |
mb() |
double |
mbFrac() |
static ByteSizeValue |
parseBytesSizeValue(String sValue) |
static ByteSizeValue |
parseBytesSizeValue(String sValue,
ByteSizeValue defaultValue) |
String |
toString() |
public ByteSizeValue(long bytes)
public ByteSizeValue(long size,
ByteSizeUnit sizeUnit)
public long bytes()
public long getBytes()
public long kb()
public long getKb()
public long mb()
public long getMb()
public long gb()
public long getGb()
public double kbFrac()
public double getKbFrac()
public double mbFrac()
public double getMbFrac()
public double gbFrac()
public double getGbFrac()
public static ByteSizeValue parseBytesSizeValue(String sValue) throws ParseException
ParseExceptionpublic static ByteSizeValue parseBytesSizeValue(String sValue, ByteSizeValue defaultValue) throws ParseException
ParseExceptionCopyright © 2021. All rights reserved.