org.openide.util.enum
Class RemoveDuplicatesEnumeration
java.lang.Object
|
+--org.openide.util.enum.FilterEnumeration
|
+--org.openide.util.enum.RemoveDuplicatesEnumeration
- All Implemented Interfaces:
- Enumeration
- public class RemoveDuplicatesEnumeration
- extends FilterEnumeration
Enumeration that scans through another one and removes duplicates.
Two objects are duplicate if one.equals (another)
.
Method Summary |
protected boolean |
accept(Object o)
Filters objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveDuplicatesEnumeration
public RemoveDuplicatesEnumeration(Enumeration en)
- Parameters:
en
- enumeration to filter
accept
protected boolean accept(Object o)
- Filters objects. Overwrite this to decide which objects should be
included in enumeration and which not.
- Overrides:
accept
in class FilterEnumeration
- Parameters:
o
- the object to decide on- Returns:
- true if it should be in enumeration and false if it should not
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.