|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSeq<T>
Seq0<T>
public final class Seq0<T>
A empty sequence subclass of Seq. See the documentation of Seq.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Seq |
---|
Seq.SeqIterator |
Constructor Summary | |
---|---|
Seq0()
|
Method Summary | |
---|---|
Seq<T> |
copy()
Accessor that copies the sequence. |
boolean |
equals(java.lang.Object obj)
|
T |
getFirst()
Accessor returning the first element in sequence. |
protected Seq<T> |
getSubseq()
|
boolean |
isEmpty()
Accessor testing emptyness. |
int |
length()
Accessor determining length. |
protected Seq<T> |
reverseRecurs(Seq<T> buildMe)
|
void |
setFirst(T t)
Mutator that resets the first value of the sequence. |
protected void |
setSubseq(Seq<T> t)
|
protected char[] |
toStringRecurs(int where)
|
Methods inherited from class Seq |
---|
iterator, reverse, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Seq0()
Method Detail |
---|
public boolean isEmpty()
Seq
isEmpty
in class Seq<T>
public int length()
Seq
length
in class Seq<T>
public void setFirst(T t)
Seq
setFirst
in class Seq<T>
t
- a generic value to replace the first in the sequencepublic T getFirst()
Seq
getFirst
in class Seq<T>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Seq<T> copy()
Seq
copy
in class Seq<T>
protected Seq<T> getSubseq()
getSubseq
in class Seq<T>
protected void setSubseq(Seq<T> t)
setSubseq
in class Seq<T>
protected char[] toStringRecurs(int where)
toStringRecurs
in class Seq<T>
protected Seq<T> reverseRecurs(Seq<T> buildMe)
reverseRecurs
in class Seq<T>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |