Class IntMatchFilterElement
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.filters.IntMatchFilterElement
-
- All Implemented Interfaces:
IntFilterElement
class IntMatchFilterElement extends java.lang.Object implements IntFilterElement
This filter element is immutable and accepts a matching Integer.
-
-
Field Summary
Fields Modifier and Type Field Description private int
matchValue
The matching Integer.
-
Constructor Summary
Constructors Constructor Description IntMatchFilterElement(int matchValue)
Constructs a MatchFilter for an int.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(int intValue)
Determines whether or not a filtered Integer is accepted.boolean
equals(java.lang.Object object)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
matchValue
private final int matchValue
The matching Integer.
-
-
Constructor Detail
-
IntMatchFilterElement
IntMatchFilterElement(int matchValue)
Constructs a MatchFilter for an int.- Parameters:
matchValue
- the matching int.
-
-
Method Detail
-
accept
public boolean accept(int intValue)
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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
-