Package components.list
Class ListSecondary<T>
java.lang.Object
components.list.ListSecondary<T>
- Type Parameters:
T
- type of List entries
- All Implemented Interfaces:
List<T>
,ListKernel<T>
,Standard<List<T>>
,Iterable<T>
Layered implementations of secondary methods for
List
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
int
hashCode()
void
Moves the position inthis
to the end.Replaces the entry at the front ofthis.right
withx
, and returns the old entry.void
retreat()
Retreats the position inthis
by one.Reports the front ofthis.right
.void
swapRights
(List<T> list) Swaps the right strings ofthis
andlist
.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface components.list.ListKernel
addRightFront, advance, leftLength, moveToStart, removeRightFront, rightLength
Methods inherited from interface components.standard.Standard
clear, newInstance, transferFrom
-
Constructor Details
-
ListSecondary
public ListSecondary()
-
-
Method Details
-
equals
-
hashCode
-
toString
-
rightFront
Description copied from interface:List
Reports the front ofthis.right
.- Specified by:
rightFront
in interfaceList<T>
- Returns:
- the front entry of
this.right
-
replaceRightFront
Description copied from interface:List
Replaces the entry at the front ofthis.right
withx
, and returns the old entry.- Specified by:
replaceRightFront
in interfaceList<T>
- Parameters:
x
- the new entry- Returns:
- the old front entry of
this.right
-
moveToFinish
Description copied from interface:List
Moves the position inthis
to the end.- Specified by:
moveToFinish
in interfaceList<T>
-
retreat
Description copied from interface:List
Retreats the position inthis
by one. -
swapRights
Description copied from interface:List
Swaps the right strings ofthis
andlist
.- Specified by:
swapRights
in interfaceList<T>
- Parameters:
list
- theList
whose right string is to be swapped with the right string ofthis
-