Uses of Enum Class
com.norconex.commons.lang.time.DurationUnit
Packages that use DurationUnit
-
Uses of DurationUnit in com.norconex.commons.lang.time
Methods in com.norconex.commons.lang.time that return DurationUnitModifier and TypeMethodDescriptionstatic DurationUnitDurationUnit.from(long duration) Gets the largest unit fitting in the provided duration.static DurationUnitGets the DurationUnit matching the provided string (case insensitive) ornullif there are no units matching.static DurationUnitGets the largest unit fitting in the provided duration.static DurationUnitDurationUnit.from(TemporalUnit temporalUnit) DurationFormatter.getHighestUnit()DurationFormatter.getLowestUnit()static DurationUnit[]DurationUnit.reverseValues()Returns all units from the highest (year), to the smallest (milliseconds).static DurationUnitReturns the enum constant of this class with the specified name.static DurationUnit[]DurationUnit.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.norconex.commons.lang.time with parameters of type DurationUnitModifier and TypeMethodDescriptionDurationUnitFormatter.format(DurationUnit unit, Locale locale, boolean plural) Format a duration unitRbDurationUnitFormatter.format(DurationUnit unit, Locale locale, boolean plural) longDurationUnit.toUnit(DurationUnit targetUnit, long amount) DurationFormatter.withHighestUnit(DurationUnit highestUnit) Creates a copy if this formatter with the given highest unit.DurationFormatter.withLowestUnit(DurationUnit lowestUnit) Creates a copy if this formatter with the given lowest unit.