|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tigris.gef.util.EnumerationSingle
public class EnumerationSingle
A enumeration that has exactly one element. Functially equivelant to:
Vector v = new Vector();
v.addElement(obj);
return v.elements();
This is useful when you must pass or return an enumeration, but you
do not have many elements.
| Constructor Summary | |
|---|---|
EnumerationSingle(java.lang.Object ele)
|
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
|
java.lang.Object |
nextElement()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumerationSingle(java.lang.Object ele)
| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationpublic java.lang.Object nextElement()
nextElement in interface java.util.Enumeration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||