Package org.passay
Class LengthComplexityRule.Interval
- java.lang.Object
-
- org.passay.LengthComplexityRule.Interval
-
- Enclosing class:
- LengthComplexityRule
public static class LengthComplexityRule.Interval extends Object
Class that represents an interval of numbers and parses interval notation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
includes(int i)
Returns whether this interval includes the supplied integer.boolean
intersects(LengthComplexityRule.Interval i)
Returns whether this interval intersects the supplied interval.String
toString()
-
-
-
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
-
-