Interface TemporalHandler<T>

  • Type Parameters:
    T - The return type of the functions

    public interface TemporalHandler<T>
    Handler for flexibly dealing with different granularity date/date-times
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default T fallback​(java.time.temporal.Temporal temporal)  
      default T handle​(java.time.LocalDate localDate)  
      default T handle​(java.time.LocalDateTime localDateTime)  
      default T handle​(java.time.OffsetDateTime offsetDateTime)  
      default T handle​(java.time.Year year)  
      default T handle​(java.time.YearMonth yearMonth)  
    • Method Detail

      • handle

        default T handle​(java.time.LocalDateTime localDateTime)
      • handle

        default T handle​(java.time.LocalDate localDate)
      • handle

        default T handle​(java.time.YearMonth yearMonth)
      • handle

        default T handle​(java.time.Year year)
      • handle

        default T handle​(java.time.OffsetDateTime offsetDateTime)
      • fallback

        default T fallback​(java.time.temporal.Temporal temporal)