uci.util
Class EnumerationSingle
java.lang.Object
|
+--uci.util.EnumerationSingle
- public class EnumerationSingle
- extends Object
- implements Enumeration, Serializable
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.
- See Also:
ChildGenUML.gen(java.lang.Object), Serialized Form
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EnumerationSingle
public EnumerationSingle(Object ele)
hasMoreElements
public boolean hasMoreElements()
- Specified by:
- hasMoreElements in interface Enumeration
nextElement
public Object nextElement()
- Specified by:
- nextElement in interface Enumeration