Class TemporalUnitLessThanOffset

    • Constructor Detail

      • TemporalUnitLessThanOffset

        public TemporalUnitLessThanOffset​(long value,
                                          TemporalUnit unit)
    • Method Detail

      • isBeyondOffset

        public boolean isBeyondOffset​(Temporal temporal1,
                                      Temporal temporal2)
        Checks if difference between temporal values is less then 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 more or equal to offset value.