ByteSize.Default| Modifier and Type | Method and Description |
|---|---|
double |
amount()
Gets the amount of this
ByteSize. |
long |
bytes() |
int |
compareTo(ByteSize other) |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString()
Returns the amount followed by the unit, e.g 1.2MB.
|
ByteUnit |
unit()
Gets the unit of this
ByteSize. |
public double amount()
ByteSizeByteSize.public ByteUnit unit()
ByteSizeByteSize.public long bytes()
bytes in interface ByteSizeByteSize.amount() and ByteSize.unit() yieldByteUnit.toBytes(double)public int compareTo(ByteSize other)
compareTo in interface Comparable<ByteSize>public String toString()
ByteSizetoString in interface ByteSizetoString in class ObjectByteSizeParser.parse(String)ByteSize.New(String)Copyright © 2022 MicroStream Software. All rights reserved.