T
- public abstract class SequenceSecondary<T> extends java.lang.Object implements Sequence<T>
Constructor and Description |
---|
SequenceSecondary() |
Modifier and Type | Method and Description |
---|---|
void |
append(Sequence<T> seq)
Appends the entries in
seq to the end of this . |
void |
append(T entry)
Appends
entry to the end of this . |
boolean |
contains(T entry)
Reports whether
entry is in this . |
T |
entry(int pos)
Returns a reference to the entry at index
pos of this . |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
T |
replaceEntry(int pos,
T entry)
Replaces the entry at index
pos of #this with
entry . |
java.lang.String |
toString() |
add, length, remove
clear, newInstance, transferFrom
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean contains(T entry)
Sequence
entry
is in this
.public void append(Sequence<T> seq)
Sequence
seq
to the end of this
.public void append(T entry)
Sequence
entry
to the end of this
.public T entry(int pos)
Sequence
pos
of this
.public T replaceEntry(int pos, T entry)
Sequence
pos
of #this
with
entry
.replaceEntry
in interface Sequence<T>
pos
- index of entry in #this
to be replacedentry
- entry that will take the place of the entry at index
pos
of #this
pos
of #this