Uses of Class
com.norconex.commons.lang.unit.DataUnit
-
Packages that use DataUnit Package Description com.norconex.commons.lang.unit Classes making it easier to deal with unit conversions and formatting.com.norconex.commons.lang.xml XML-related classes. -
-
Uses of DataUnit in com.norconex.commons.lang.unit
Fields in com.norconex.commons.lang.unit with type parameters of type DataUnit Modifier and Type Field Description static List<DataUnit>DataUnit. BINARY_BIT_UNITSstatic List<DataUnit>DataUnit. BINARY_BYTE_UNITSstatic List<DataUnit>DataUnit. DECIMAL_BIT_UNITSstatic List<DataUnit>DataUnit. DECIMAL_BYTE_UNITSMethods in com.norconex.commons.lang.unit that return DataUnit Modifier and Type Method Description static DataUnitDataUnit. from(String dataUnit)Gets the unit value representing the given text.static DataUnitDataUnit. 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.Methods in com.norconex.commons.lang.unit with parameters of type DataUnit Modifier and Type Method Description longDataUnit. convert(long sourceAmount, DataUnit sourceUnit)Deprecated.Since 2.0.0, usefrom(BigDecimal, DataUnit)StringDataUnitFormatter. format(double amount, DataUnit unit)Formats a data amount of the given unit to a human-readable representation.StringDataUnitFormatter. format(BigDecimal amount, DataUnit unit)Formats a data amount of the given unit to a human-readable representation.BigDecimalDataUnit. from(double sourceAmount, DataUnit sourceUnit)Converts an amount of a specific unit to this unit.BigDecimalDataUnit. from(BigDecimal sourceAmount, DataUnit sourceUnit)Converts an amount of a specific unit to this unit.static BigDecimalDataUnitParser. parse(String text, DataUnit targetUnit)Parses a text representation of a data measurement.static BigDecimalDataUnitParser. parse(String text, DataUnit targetUnit, BigDecimal defaultValue)Parses a text representation of a data measurement.BigDecimalDataUnit. to(double sourceAmount, DataUnit targetUnit)BigDecimalDataUnit. to(BigDecimal sourceAmount, DataUnit targetUnit) -
Uses of DataUnit in com.norconex.commons.lang.xml
Methods in com.norconex.commons.lang.xml with parameters of type DataUnit Modifier and Type Method Description LongXML. getDataSize(String xpathExpression, DataUnit targetUnit, Long defaultValue)Gets the size of a data expression, in the specified target unit (e.g., 2KB, 1GiB, 3 megabytes, etc).
-