com.puppycrawl.tools.checkstyle.filters

Class IntRangeFilter

class IntRangeFilter extends Object implements IntFilter

This filter accepts an Integer in a range.

Author: Rick Giles

Constructor Summary
IntRangeFilter(int aLowerBound, int aUpperBound)
Constructs a IntRangeFilter with a lower bound and an upper bound for the range.
Method Summary
booleanaccept(Integer aInt)
{@inheritDoc}
booleanequals(Object aObject)
{@inheritDoc}
inthashCode()
{@inheritDoc}
StringtoString()
{@inheritDoc}

Constructor Detail

IntRangeFilter

public IntRangeFilter(int aLowerBound, int aUpperBound)
Constructs a IntRangeFilter with a lower bound and an upper bound for the range.

Parameters: aLowerBound the lower bound of the range. aUpperBound the upper bound of the range.

Method Detail

accept

public boolean accept(Integer aInt)
{@inheritDoc}

equals

public boolean equals(Object aObject)
{@inheritDoc}

hashCode

public int hashCode()
{@inheritDoc}

toString

public String toString()
{@inheritDoc}