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 interface Iterable
forEach, iterator, spliteratorMethods inherited from interface SequenceKernel
add, length, removeMethods inherited from interface Standard
clear, newInstance, transferFrom
-
Constructor Details
-
SequenceSecondary
public SequenceSecondary()
-
-
Method Details
-
equals
-
hashCode
-
toString
-
entry
-
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
-
flip
-
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.
-