Interface Normalizer<U>

Type Parameters:
U - generic type of time unit compatible to ChronoUnit
All Known Implementing Classes:
PlainDate, PlainTimestamp

public interface Normalizer<U>

Normalizes a time span.

Author:
Meno Hochschild
  • Method Summary

    Modifier and Type
    Method
    Description
    normalize​(TimeSpan<? extends U> timespan)
    Normalizes given time span such that the amounts of associated time units are converted in a specific way.
  • Method Details

    • normalize

      TimeSpan<U> normalize(TimeSpan<? extends U> timespan)

      Normalizes given time span such that the amounts of associated time units are converted in a specific way.

      Parameters:
      timespan - time span to be normalized
      Returns:
      normalized copy of argument which itself remains unaffected
      See Also:
      Duration.with(Normalizer)