Package | Description |
---|---|
com.norconex.commons.lang.time |
Time-related utility classes.
|
Modifier and Type | Field and Description |
---|---|
static DurationFormatter |
DurationFormatter.COMPACT
Example: 5D18h1m23s
|
static DurationFormatter |
DurationFormatter.FULL
Example: 5 days 18 hours 1 minute 23 seconds
|
Modifier and Type | Method and Description |
---|---|
DurationFormatter |
DurationFormatter.withHighestUnit(DurationUnit highestUnit)
Creates a copy if this formatter with the given highest unit.
|
DurationFormatter |
DurationFormatter.withInnerSeparator(String innerSeparator)
Creates a copy if this formatter with the specified separator text
to be inserted between the numeric and textual values.
|
DurationFormatter |
DurationFormatter.withLocale(Locale locale)
Creates a copy if this formatter with the given locale.
|
DurationFormatter |
DurationFormatter.withLowestUnit(DurationUnit lowestUnit)
Creates a copy if this formatter with the given lowest unit.
|
DurationFormatter |
DurationFormatter.withNumberFormat(NumberFormat numberFormat)
Creates a copy if this formatter with the given number format.
|
DurationFormatter |
DurationFormatter.withOuterLastSeparator(String outerLastSeparator)
Creates a copy if this formatter with the specified separator text
to be inserted between the second to last and last formatter units
(number and text pairs).
|
DurationFormatter |
DurationFormatter.withOuterSeparator(String outerSeparator)
Creates a copy if this formatter with the specified separator text
to be inserted between each formatter units (number and text pairs).
|
DurationFormatter |
DurationFormatter.withUnitFormatter(IDurationUnitFormatter unitFormatter)
Creates a copy if this formatter with the given unit formatter.
|
DurationFormatter |
DurationFormatter.withUnitPrecision(int unitPrecision)
Creates a copy if this formatter with the given unit precision.
|
Copyright © 2008–2023 Norconex Inc.. All rights reserved.