public interface ByteSize extends Comparable<ByteSize>
ByteUnit.| Modifier and Type | Interface and Description |
|---|---|
static class |
ByteSize.Default |
| Modifier and Type | Method and Description |
|---|---|
double |
amount()
Gets the amount of this
ByteSize. |
long |
bytes() |
static ByteSize |
New(double amount,
ByteUnit unit)
Pseudo-constructor method which creates a new
ByteSize object. |
static ByteSize |
New(String value)
Pseudo-constructor method which creates a new
ByteSize object
by calling ByteSizeParser.parse(String). |
String |
toString()
Returns the amount followed by the unit, e.g 1.2MB.
|
ByteUnit |
unit()
Gets the unit of this
ByteSize. |
compareTodouble amount()
ByteSize.long bytes()
amount() and unit() yieldByteUnit.toBytes(double)String toString()
toString in class ObjectByteSizeParser.parse(String)New(String)static ByteSize New(String value)
ByteSize object
by calling ByteSizeParser.parse(String).value - the String value wich can be understood by ByteSizeParser.parse(String)ByteSize object with the given valueByteSizeParser,
ByteSizeParser.parse(String)Copyright © 2022 MicroStream Software. All rights reserved.