Interface TemporalFunction<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String describe​(T temporal, Locale locale)
      Describe a temporal type
      Interval interval​(T temporal, T other, ChronoUnit unit)
      Return the interval between two temporals
      boolean isAfter​(T temporal, T other)
      Test if a temporal is after another temporal
      boolean isBefore​(T temporal, T other)
      Test if a temporal is before another temporal
      boolean isSame​(T temporal, T other)
      Test if a temporal is the same as another temporal
    • Method Detail

      • describe

        String describe​(T temporal,
                        Locale locale)
        Describe a temporal type
        Parameters:
        temporal - the temporal instance to describe
        locale - the locale to describe the temporal in
        Returns:
        a string description of the temporal
      • isSame

        boolean isSame​(T temporal,
                       T other)
        Test if a temporal is the same as another temporal
        Parameters:
        temporal - the temporal to test for
        other - the temporal to test against
        Returns:
        a boolean
      • isAfter

        boolean isAfter​(T temporal,
                        T other)
        Test if a temporal is after another temporal
        Parameters:
        temporal - the temporal to test for
        other - the temporal to test against
        Returns:
        a boolean
      • isBefore

        boolean isBefore​(T temporal,
                         T other)
        Test if a temporal is before another temporal
        Parameters:
        temporal - the temporal to test for
        other - the temporal to test against
        Returns:
        a boolean
      • interval

        Interval interval​(T temporal,
                          T other,
                          ChronoUnit unit)
        Return the interval between two temporals
        Parameters:
        temporal - the temporal to test for
        other - the temporal to test against
        unit - the unit to measure the interval in
        Returns:
        an Interval