public class ConsEnumeration<T> extends Object implements SkipEnumeration<T>
cons function on
enumerations ie it allows you to add an object to the front
of an Enumeration.| Constructor and Description |
|---|
ConsEnumeration(T head,
Enumeration<T> tail)
Constructor with head and tail.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements() |
T |
nextElement() |
void |
skip()
Skip an Element.
|
public ConsEnumeration(T head, Enumeration<T> tail)
head - single elementtail - the restpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<T>public T nextElement()
nextElement in interface Enumeration<T>public void skip()
SkipEnumerationskip in interface SkipEnumeration<T>Copyright © 2000–2021 PanEris. All rights reserved.