Class TemporalUnitWithinOffset

    • Constructor Detail

      • TemporalUnitWithinOffset

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

      • isBeyondOffset

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