| Package | Description |
|---|---|
| org.aeonbits.owner.util.bytesize |
| Modifier and Type | Method | Description |
|---|---|---|
static ByteSizeUnit |
ByteSizeUnit.parse(java.lang.String unit) |
Parses a string representation of a byte size unit and returns the corresponding
ByteSizeUnit. |
static ByteSizeUnit |
ByteSizeUnit.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ByteSizeUnit[] |
ByteSizeUnit.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method | Description |
|---|---|---|
ByteSize |
ByteSize.convertTo(ByteSizeUnit unit) |
Creates a new
ByteSize representing the same byte size but in a different unit. |
| Constructor | Description |
|---|---|
ByteSize(double value,
ByteSizeUnit unit) |
Creates a byte size value from a
double value and a ByteSizeUnit. |
ByteSize(long value,
ByteSizeUnit unit) |
Creates a byte size value from a
long value and a ByteSizeUnit. |
ByteSize(java.lang.String value,
ByteSizeUnit unit) |
Creates a byte size value from a
String value and a ByteSizeUnit. |
ByteSize(java.math.BigDecimal value,
ByteSizeUnit unit) |
Creates a byte size value from two parts, a value and a
ByteSizeUnit. |
Copyright © 2012–2020 Luigi R. Viggiano. All rights reserved.