uci.util
Class EnumerationComposite
java.lang.Object
|
+--uci.util.EnumerationComposite
- public class EnumerationComposite
- extends Object
- implements Enumeration, Serializable
This class concatenates Enumerations. Successive calls to
nextElement return elements from each Enumeration until that
enumeration is exhausted.
- See Also:
- Serialized Form
|
Method Summary |
void |
addSub(Enumeration e)
Concatenate the given Enumeration to the end of the receiving
EnumerationComposite. |
void |
addSub(Vector v)
Concatenate the elements() of the given Vector to the end of the
receiving EnumerationComposite. |
protected void |
findNext()
Internal function to find the element to return on the next call
to nextElement(). |
boolean |
hasMoreElements()
Reply true iff this EnumerationComposite has more elements. |
Object |
nextElement()
Reply the next element, or raise an execption if there is none. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EnumerationComposite
public EnumerationComposite()
EnumerationComposite
public EnumerationComposite(Enumeration e1)
EnumerationComposite
public EnumerationComposite(Enumeration e1,
Enumeration e2)
EnumerationComposite
public EnumerationComposite(Enumeration e1,
Enumeration e2,
Enumeration e3)
addSub
public void addSub(Enumeration e)
- Concatenate the given Enumeration to the end of the receiving
EnumerationComposite.
addSub
public void addSub(Vector v)
- Concatenate the elements() of the given Vector to the end of the
receiving EnumerationComposite.
hasMoreElements
public boolean hasMoreElements()
- Reply true iff this EnumerationComposite has more elements.
- Specified by:
- hasMoreElements in interface Enumeration
nextElement
public Object nextElement()
- Reply the next element, or raise an execption if there is none.
- Specified by:
- nextElement in interface Enumeration
findNext
protected void findNext()
- Internal function to find the element to return on the next call
to nextElement().