org.openide.util.Enumerations#filter.public class FilterEnumeration extends Object implements Enumeration
accept method.
Objects in the enumeration must not be null.| Constructor and Description |
|---|
FilterEnumeration(Enumeration en)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(Object o)
Deprecated.
Filters objects.
|
boolean |
hasMoreElements()
Deprecated.
|
Object |
nextElement()
Deprecated.
|
public FilterEnumeration(Enumeration en)
en - enumeration to filterprotected boolean accept(Object o)
Default implementation accepts all non-null objects
o - the object to decide onpublic boolean hasMoreElements()
hasMoreElements in interface Enumerationpublic Object nextElement()
nextElement in interface EnumerationNoSuchElementException - can be thrown if there is no next object
in the enumerationBuilt on May 21 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.