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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleaninthashCode()voidMoves the position inthisto the end.Replaces the entry at the front ofthis.rightwithx, and returns the old entry.voidretreat()Retreats the position inthisby one.Reports the front ofthis.right.voidswapRights(List<T> list) Swaps the right strings ofthisandlist.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.list.ListKernel
addRightFront, advance, leftLength, moveToStart, removeRightFront, rightLengthMethods inherited from interface components.standard.Standard
clear, newInstance, transferFrom
-
Constructor Details
-
ListSecondary
public ListSecondary()
-
-
Method Details
-
equals
-
hashCode
-
toString
-
rightFront
Description copied from interface:ListReports the front ofthis.right.- Specified by:
rightFrontin interfaceList<T>- Returns:
- the front entry of
this.right
-
replaceRightFront
Description copied from interface:ListReplaces the entry at the front ofthis.rightwithx, and returns the old entry.- Specified by:
replaceRightFrontin interfaceList<T>- Parameters:
x- the new entry- Returns:
- the old front entry of
this.right
-
moveToFinish
Description copied from interface:ListMoves the position inthisto the end.- Specified by:
moveToFinishin interfaceList<T>
-
retreat
Description copied from interface:ListRetreats the position inthisby one. -
swapRights
Description copied from interface:ListSwaps the right strings ofthisandlist.- Specified by:
swapRightsin interfaceList<T>- Parameters:
list- theListwhose right string is to be swapped with the right string ofthis
-