Package org.passay

Class LengthComplexityRule.Interval

  • Enclosing class:
    LengthComplexityRule

    public static class LengthComplexityRule.Interval
    extends Object
    Class that represents an interval of numbers and parses interval notation.
    • Method Detail

      • includes

        public boolean includes​(int i)
        Returns whether this interval includes the supplied integer.
        Parameters:
        i - to test for inclusion
        Returns:
        whether this interval includes the supplied integer
      • intersects

        public boolean intersects​(LengthComplexityRule.Interval i)
        Returns whether this interval intersects the supplied interval.
        Parameters:
        i - interval to test for intersection
        Returns:
        whether this interval intersects the supplied interval