public class Sequence extends Entity
Vector
,
EventList
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENTITY_TYPE_ID
The entity type ID of all
Sequence instances. |
Constructor and Description |
---|
Sequence()
Constructs an empty sequence.
|
Sequence(EventList eventList,
java.util.List<Vector> vectors)
Constructs a sequence of the specified vectors with the specified events.
|
Sequence(int capacity)
Constructs an empty sequence with the specified initial capacity of an underlying collection
of vectors.
|
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)
Compares the specified object with this sequence for equality.
|
EventList |
getEventList()
Returns an
EventList object associated with this sequence. |
int |
getLength()
Returns an amount of vectors in this sequence.
|
Vector |
getVector(int vectorIndex)
Returns a vector with the specified index from this sequence.
|
java.util.List<Vector> |
getVectors()
Returns a list containing all vectors of this sequence.
|
int |
hashCode() |
java.lang.String |
toString() |
add, getEntityType
public static final java.lang.String ENTITY_TYPE_ID
Sequence
instances.public Sequence()
public Sequence(int capacity)
capacity
- the initial capacitypublic void addVector(Vector vector)
vector
- the vector to be addedpublic void addVectors(java.util.List<Vector> vectors)
vectors
- a list of the vectors to be addedpublic Vector getVector(int vectorIndex)
vectorIndex
- the index of the requested vectorjava.lang.IndexOutOfBoundsException
- if the index is out of rangepublic java.util.List<Vector> getVectors()
public EventList getEventList()
EventList
object associated with this sequence.public int getLength()
public boolean equals(java.lang.Object obj)
Sequence
class or its subclass;
EventList
is equal to this sequence's one;