|
|
||||||||||||||
Class EnumWrapperpublic class EnumWrapper implements Enumeration { // Constructors public EnumWrapper(Object o); // Methods public boolean hasMoreElements(); public Object nextElement(); } This class is a simple implementation of the Enumeration interface. The EnumWrapper object generates a list of objects and accesses them through calls to the nextElement method. ConstructorsEnumWrapperpublic EnumWrapper(Object o); MethodshasMoreElementspublic boolean hasMoreElements(); nextElementpublic Object nextElement();
|