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>
Direct Known Subclasses:
List1L, List2, List3

public abstract class ListSecondary<T> extends Object implements List<T>
Layered implementations of secondary methods for List.
  • Constructor Details

  • Method Details

    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • rightFront

      public T rightFront()
      Description copied from interface: List
      Reports the front of this.right.
      Specified by:
      rightFront in interface List<T>
      Returns:
      the front entry of this.right
    • replaceRightFront

      public T replaceRightFront(T x)
      Description copied from interface: List
      Replaces the entry at the front of this.right with x, and returns the old entry.
      Specified by:
      replaceRightFront in interface List<T>
      Parameters:
      x - the new entry
      Returns:
      the old front entry of this.right
    • moveToFinish

      public void moveToFinish()
      Description copied from interface: List
      Moves the position in this to the end.
      Specified by:
      moveToFinish in interface List<T>
    • retreat

      public void retreat()
      Description copied from interface: List
      Retreats the position in this by one.
      Specified by:
      retreat in interface List<T>
    • swapRights

      public void swapRights(List<T> list)
      Description copied from interface: List
      Swaps the right strings of this and list.
      Specified by:
      swapRights in interface List<T>
      Parameters:
      list - the List whose right string is to be swapped with the right string of this