Package components.sequence
Class SequenceSecondary<T>
java.lang.Object
components.sequence.SequenceSecondary<T>
- Type Parameters:
T- type ofSequenceentries
- All Implemented Interfaces:
Sequence<T>,SequenceKernel<T>,Standard<Sequence<T>>,Iterable<T>
- Direct Known Subclasses:
Sequence1L,Sequence2L,Sequence3
Layered implementations of secondary methods for
Sequence.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConcatenates ("appends")sto the end ofthis.entry(int pos) Reports the entry at positionposofthis.final booleanvoidRemoves the substring ofthisstarting at positionpos1and ending at positionpos2-1and puts in its.voidflip()Reverses ("flips")this.inthashCode()voidInsertssintothisat positionpos, i.e., after thepos-th entry ofthis; and clearss.replaceEntry(int pos, T x) Replaces the entry at positionposofthiswith the entryxand returns the old entry at that position.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface components.sequence.SequenceKernel
add, length, removeMethods inherited from interface components.standard.Standard
clear, newInstance, transferFrom
-
Constructor Details
-
SequenceSecondary
public SequenceSecondary()
-
-
Method Details
-
equals
-
hashCode
-
toString
-
entry
Description copied from interface:SequenceReports the entry at positionposofthis. -
replaceEntry
Description copied from interface:SequenceReplaces the entry at positionposofthiswith the entryxand returns the old entry at that position.- Specified by:
replaceEntryin interfaceSequence<T>- Parameters:
pos- the position at which to replace an entryx- the entry replacing the old one- Returns:
- the old entry at that position
-
append
Description copied from interface:SequenceConcatenates ("appends")sto the end ofthis. -
flip
Description copied from interface:SequenceReverses ("flips")this. -
insert
Description copied from interface:SequenceInsertssintothisat positionpos, i.e., after thepos-th entry ofthis; and clearss. -
extract
Description copied from interface:SequenceRemoves the substring ofthisstarting at positionpos1and ending at positionpos2-1and puts in its.
-