Package com.norconex.commons.lang.time

# Interface DurationUnitFormatter

All Known Subinterfaces:
  `IDurationUnitFormatter`

All Known Implementing Classes:
  `RbDurationUnitFormatter`

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DurationUnitFormatter
Formats a single duration unit according to supplied locale and plurality flag.

Since:
  3.0.0 (renamed from v2.x IDurationFormatter)
See Also:
  - `DurationFormatter`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `format(DurationUnit unit, Locale locale, boolean plural)`
  Format a duration unit

- ## Method Details

  - ### format

    String format(DurationUnit unit, Locale locale, boolean plural)
    Format a duration unit
    Parameters:
      `unit` - duration unit
      `locale` - locale
      `plural` - `true` if plural
    Returns:
      formatted unit