|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.util.Filter_Duplicates
public class Filter_Duplicates
A sample filter for use with FilterIterator
. It removes
duplicate elements from an iteration. equals()
is used as the
method to determine if two objects are the same.
Field Summary |
---|
Fields inherited from interface com.objectspace.jgl.UnaryPredicate |
---|
serialVersionUID |
Constructor Summary | |
---|---|
Filter_Duplicates()
Construct myself to be a filter that skips an object if the same object has been processed before. |
Method Summary | |
---|---|
boolean |
execute(java.lang.Object obj)
Return true for an object if execute() has
been called for it before. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Filter_Duplicates()
Method Detail |
---|
public final boolean execute(java.lang.Object obj)
true
for an object if execute()
has
been called for it before.
execute
in interface com.objectspace.jgl.UnaryPredicate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |