Package | Description |
---|---|
com.norconex.commons.lang.unit |
Classes making it easier to deal with unit conversions and formatting.
|
Modifier and Type | Method and Description |
---|---|
static DataUnit |
DataUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataUnit[] |
DataUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
long |
DataUnit.convert(long sourceAmount,
DataUnit sourceUnit)
Converts a given source data amount and type to this type.
|
String |
DataUnitFormatter.format(long amount,
DataUnit unit)
Formats a data amount of the given unit to a human-readable
representation.
|
Copyright © 2008–2021 Norconex Inc.. All rights reserved.