org.progeeks.graph
Class IdentifiableLocator
java.lang.Object
org.progeeks.graph.IdentifiableLocator
- All Implemented Interfaces:
- java.io.Serializable, org.apache.commons.collections.Predicate
public class IdentifiableLocator
- extends java.lang.Object
- implements org.apache.commons.collections.Predicate, java.io.Serializable
Node filter that returns true for any Identifiable object
with the specified String ID.
- Version:
- $Revision: 1.9 $
- Author:
- Paul Speed
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
|
boolean |
evaluate(java.lang.Object node)
Returns true if the specified node is an Identifiable object
with the ID matching this locator's associated ID. |
java.lang.String |
getFilteredId()
Returns the ID for which this filter will find matches. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
IdentifiableLocator
public IdentifiableLocator(java.lang.String id)
getFilteredId
public java.lang.String getFilteredId()
- Returns the ID for which this filter will find matches.
evaluate
public boolean evaluate(java.lang.Object node)
- Returns true if the specified node is an Identifiable object
with the ID matching this locator's associated ID.
- Specified by:
evaluate
in interface org.apache.commons.collections.Predicate
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2003 Paul Speed. All Rights Reserved.