public final class Sequence extends java.lang.Object implements java.util.Iterator<TestVector>
TestVector
,
EventList
Constructor and Description |
---|
Sequence()
Constructs an empty sequence.
|
Sequence(TestVector vector)
Constructs the sequence that contains the specified vector only.
|
Modifier and Type | Method and Description |
---|---|
void |
addVector(TestVector vector)
Adds the specified vector to the end of this sequence.
|
void |
addVectors(java.util.List<TestVector> vectors)
Adds the specified vectors to the end of this sequence.
|
boolean |
equals(java.lang.Object object) |
int |
getLength()
Returns an amount of vectors in this sequence.
|
int |
hashCode() |
boolean |
hasNext() |
boolean |
includes(Sequence sequence)
Checks whether the object includes the specified one.
|
void |
initIterator()
Prepares internal iterator for vectors.
|
boolean |
isEmpty()
Checks whether the object has no vectors..
|
TestVector |
next() |
void |
remove() |
java.lang.String |
toString() |
public Sequence()
public Sequence(TestVector vector)
vector
- The vector that this sequence contains.public void addVector(TestVector vector)
vector
- TestVector to be added.java.lang.IllegalArgumentException
- when argument is null
.public void addVectors(java.util.List<TestVector> vectors)
vectors
- a list of the vectors to be addedjava.lang.IllegalArgumentException
- when argument is null
.public int getLength()
public boolean isEmpty()
true
if the object has no vectors, false
otherwise.public void initIterator()
public boolean includes(Sequence sequence)
sequence
- The object for which the checking is applied.true
when the specified object is includes into the object,
false
otherwise.public boolean hasNext()
hasNext
in interface java.util.Iterator<TestVector>
public TestVector next()
next
in interface java.util.Iterator<TestVector>
public void remove()
remove
in interface java.util.Iterator<TestVector>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object