|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.VectorSequence
An implementation of Sequence
for wrapping
Vector
s.
Field Summary | |
private int |
offset
|
private java.util.Vector |
vector
|
Constructor Summary | |
VectorSequence(java.util.Vector vector)
Construct a new VectorSequence . |
Method Summary | |
int |
getSize()
Get the size of the sequence. |
boolean |
hasMoreElements()
Check if the sequence has more elements. |
java.lang.Object |
nextElement()
Get the next element in the sequence. |
void |
rewind()
Rewind the sequence to the beginning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Vector vector
private int offset
Constructor Detail |
public VectorSequence(java.util.Vector vector)
VectorSequence
.
vector
- The Vector
to wrap.Method Detail |
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
true
if there are more elements, and
false
otherwise.public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
null
if the
end has been reached.public void rewind()
rewind
in interface Sequence
public int getSize()
getSize
in interface Sequence
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |