Interface TemporalOffset<T extends Temporal>

    • Method Detail

      • isBeyondOffset

        boolean isBeyondOffset​(T temporal1,
                               T temporal2)
        Checks if difference between temporal values is beyond offset.
        Parameters:
        temporal1 - first temporal value to be validated against second temporal value.
        temporal2 - second temporal value.
        Returns:
        true if difference between temporal values is beyond offset.
      • getBeyondOffsetDifferenceDescription

        String getBeyondOffsetDifferenceDescription​(T temporal1,
                                                    T temporal2)
        Returns description of the difference between temporal values and expected offset details. Is designed for the case when difference is beyond offset.
        Parameters:
        temporal1 - first temporal value which is being validated against second temporal value.
        temporal2 - second temporal value.
        Returns:
        difference description.