public final class Sequence extends java.lang.Object implements java.util.Iterator<Vector>
Constructor and Description |
---|
Sequence()
Constructs an empty sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
addVector(Vector vector)
Adds the specified vector to the end of this sequence.
|
void |
addVectors(java.util.List<Vector> vectors)
Adds the specified vectors to the end of this sequence.
|
boolean |
equals(java.lang.Object obj) |
int |
getLength()
Returns an amount of vectors in this sequence.
|
int |
hashCode() |
boolean |
hasNext() |
void |
initIterator()
Prepares internal iterator for vectors.
|
Vector |
next() |
void |
remove() |
java.lang.String |
toString() |
public void addVector(Vector vector)
vector
- Vector to be added.java.lang.IllegalArgumentException
- when argument is null
.public void addVectors(java.util.List<Vector> vectors)
vectors
- a list of the vectors to be addedjava.lang.IllegalArgumentException
- when argument is null
.public int getLength()
public void initIterator()
public boolean hasNext()
hasNext
in interface java.util.Iterator<Vector>
public void remove()
remove
in interface java.util.Iterator<Vector>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object