public class ByteValue extends Object implements Comparable<ByteValue>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(ByteValue other) |
boolean |
equals(Object o) |
long |
getBytes() |
long |
getGb() |
double |
getGbFrac() |
long |
getKb() |
double |
getKbFrac() |
long |
getMb() |
double |
getMbFrac() |
long |
getPb() |
double |
getPbFrac() |
long |
getTb() |
double |
getTbFrac() |
int |
hashCode() |
static ByteValue |
parseByteValue(String value) |
static ByteValue |
parseByteValue(String value,
ByteValue defaultValue) |
String |
toString() |
public static final ByteValue ZERO
public ByteValue(long bytes)
public ByteValue(long size,
ByteUnit unit)
public long getBytes()
public long getKb()
public long getMb()
public long getGb()
public long getTb()
public long getPb()
public double getKbFrac()
public double getMbFrac()
public double getGbFrac()
public double getTbFrac()
public double getPbFrac()
public static ByteValue parseByteValue(String value) throws ValueParseException
public static ByteValue parseByteValue(String value, ByteValue defaultValue) throws ValueParseException
public int compareTo(ByteValue other)
compareTo 在接口中 Comparable<ByteValue>Copyright © 2021. All rights reserved.