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 interface Iterable
forEach, iterator, spliteratorMethods inherited from interface ListKernel
addRightFront, advance, leftLength, moveToStart, removeRightFront, rightLengthMethods inherited from interface 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
-
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
-