Package org.htmlparser.filters
Class IsEqualFilter
- java.lang.Object
-
- org.htmlparser.filters.IsEqualFilter
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,NodeFilter
public class IsEqualFilter extends java.lang.Object implements NodeFilter
This class accepts only one specific node.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IsEqualFilter(Node node)
Creates a new IsEqualFilter that accepts only the node provided.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Node node)
Accept the node.
-
-
-
Field Detail
-
mNode
protected Node mNode
The node to match.
-
-
Constructor Detail
-
IsEqualFilter
public IsEqualFilter(Node node)
Creates a new IsEqualFilter that accepts only the node provided.- Parameters:
node
- The node to match.
-
-
Method Detail
-
accept
public boolean accept(Node node)
Accept the node.- Specified by:
accept
in interfaceNodeFilter
- Parameters:
node
- The node to check.- Returns:
false
unlessnode
is the one and only.
-
-