Class IntRangeFilterElement
java.lang.Object
com.puppycrawl.tools.checkstyle.filters.IntRangeFilterElement
- All Implemented Interfaces:
IntFilterElement
This filter element is immutable and accepts an Integer in a range.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIntRangeFilterElement
(int lowerBound, int upperBound) Constructs aIntRangeFilterElement
with a lower bound and an upper bound for the range. -
Method Summary
-
Field Details
-
lowerBound
Lower bound of the range. -
upperBound
Upper bound of the range.
-
-
Constructor Details
-
IntRangeFilterElement
IntRangeFilterElement(int lowerBound, int upperBound) Constructs aIntRangeFilterElement
with a lower bound and an upper bound for the range.- Parameters:
lowerBound
- the lower bound of the range.upperBound
- the upper bound of the range.
-
-
Method Details
-
accept
Description copied from interface:IntFilterElement
Determines whether or not a filtered Integer is accepted.- Specified by:
accept
in interfaceIntFilterElement
- Parameters:
intValue
- the Integer to filter.- Returns:
- true if the intValue is accepted.
-
hashCode
-
equals
-