Uses of Enum Class
com.norconex.commons.lang.unit.DataUnit
Packages that use DataUnit
Package
Description
Classes making it easier to deal with unit conversions and formatting.
XML-related classes.
-
Uses of DataUnit in com.norconex.commons.lang.unit
Fields in com.norconex.commons.lang.unit with type parameters of type DataUnitModifier and TypeFieldDescriptionDataUnit.BINARY_BIT_UNITSDataUnit.BINARY_BYTE_UNITSDataUnit.DECIMAL_BIT_UNITSDataUnit.DECIMAL_BYTE_UNITSMethods in com.norconex.commons.lang.unit that return DataUnitModifier and TypeMethodDescriptionstatic DataUnitGets the unit value representing the given text.static DataUnitReturns the enum constant of this class with the specified name.static DataUnit[]DataUnit.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.norconex.commons.lang.unit with parameters of type DataUnitModifier and TypeMethodDescriptionFormats a data amount of the given unit to a human-readable representation.DataUnitFormatter.format(BigDecimal amount, DataUnit unit) Formats a data amount of the given unit to a human-readable representation.Converts an amount of a specific unit to this unit.DataUnit.from(BigDecimal sourceAmount, DataUnit sourceUnit) Converts an amount of a specific unit to this unit.static BigDecimalParses a text representation of a data measurement.static BigDecimalDataUnitParser.parse(String text, DataUnit targetUnit, BigDecimal defaultValue) Parses a text representation of a data measurement.DataUnit.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 DataUnitModifier and TypeMethodDescriptionXml.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).