org.progeeks.graph
Class PredicateRegistry.PredicateMapping
java.lang.Object
org.progeeks.graph.PredicateRegistry.PredicateMapping
- All Implemented Interfaces:
- org.apache.commons.collections.Predicate
- Enclosing class:
- PredicateRegistry
public static class PredicateRegistry.PredicateMapping
- extends java.lang.Object
- implements org.apache.commons.collections.Predicate
A single entry that maps a predicate to an associated value.
Method Summary |
boolean |
evaluate(java.lang.Object o)
Returns true if the internal predicate returns true
for the specified value. |
org.apache.commons.collections.Predicate |
getPredicate()
|
java.lang.Object |
getValue()
|
void |
setPredicate(org.apache.commons.collections.Predicate p)
|
void |
setValue(java.lang.Object value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PredicateRegistry.PredicateMapping
public PredicateRegistry.PredicateMapping()
PredicateRegistry.PredicateMapping
public PredicateRegistry.PredicateMapping(org.apache.commons.collections.Predicate p,
java.lang.Object value)
evaluate
public boolean evaluate(java.lang.Object o)
- Returns true if the internal predicate returns true
for the specified value.
- Specified by:
evaluate
in interface org.apache.commons.collections.Predicate
setPredicate
public void setPredicate(org.apache.commons.collections.Predicate p)
getPredicate
public org.apache.commons.collections.Predicate getPredicate()
setValue
public void setValue(java.lang.Object value)
getValue
public java.lang.Object getValue()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2003 Paul Speed. All Rights Reserved.