net.sf.doolin.gui.field.tree.model
Class GUITreeNodeUserObjectPredicate
java.lang.Object
net.sf.doolin.gui.field.tree.model.GUITreeNodeUserObjectPredicate
- All Implemented Interfaces:
- com.google.common.base.Predicate<GUITreeNode>
public class GUITreeNodeUserObjectPredicate
- extends Object
- implements com.google.common.base.Predicate<GUITreeNode>
This predicate checks the user object associated with a GUITreeNode.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Predicate |
equals |
GUITreeNodeUserObjectPredicate
public GUITreeNodeUserObjectPredicate(Object value,
boolean useIdentity)
- Constructor for the predicate.
- Parameters:
value - The user object to compare againstuseIdentity - true if the comparison is done using identity
(==), false if the comparison is done using the
equals method.
apply
public boolean apply(GUITreeNode n)
- Specified by:
apply in interface com.google.common.base.Predicate<GUITreeNode>
getValue
public Object getValue()
- User object
- Returns:
- User object used for the comparison
isUseIdentity
public boolean isUseIdentity()
- Comparison mode
- Returns:
true if the comparison is done using identity (==),
false if the comparison is done using the
equals method.
Copyright © 2011. All Rights Reserved.