|
org.openide.util.enumerations 6.21 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.util.enum.FilterEnumeration
org.openide.util.Enumerations#filter.
public class FilterEnumeration
Abstract class that takes an enumeration and filters its elements.
To get this class fully work one must override accept method.
Objects in the enumeration must not be null.
| Constructor Summary | |
|---|---|
FilterEnumeration(Enumeration en)
Deprecated. |
|
| Method Summary | |
|---|---|
protected boolean |
accept(Object o)
Deprecated. Filters objects. |
boolean |
hasMoreElements()
Deprecated. |
Object |
nextElement()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterEnumeration(Enumeration en)
en - enumeration to filter| Method Detail |
|---|
protected boolean accept(Object o)
Default implementation accepts all non-null objects
o - the object to decide on
public boolean hasMoreElements()
hasMoreElements in interface Enumerationpublic Object nextElement()
nextElement in interface EnumerationNoSuchElementException - can be thrown if there is no next object
in the enumeration
|
org.openide.util.enumerations 6.21 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||