Package generic.stl

Class ListSTL<T>

java.lang.Object
generic.stl.ListSTL<T>

public class ListSTL<T> extends Object
  • Field Details

    • EOL

      public static final String EOL
  • Constructor Details

    • ListSTL

      public ListSTL()
  • Method Details

    • toString

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

      public void printDebug()
    • begin

      public IteratorSTL<T> begin()
    • end

      public IteratorSTL<T> end()
    • rBegin

      public IteratorSTL<T> rBegin()
    • rEnd

      public IteratorSTL<T> rEnd()
    • size

      public int size()
    • clear

      public void clear()
    • isEmpty

      public boolean isEmpty()
    • front

      public T front()
    • back

      public T back()
    • push_back

      public void push_back(T value)
    • push_front

      public void push_front(T value)
    • insert

      public IteratorSTL<T> insert(IteratorSTL<T> position, T value)
    • erase

      public void erase(IteratorSTL<T> position)
    • pop_front

      public T pop_front()
    • pop_back

      public T pop_back()
    • equals

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

      public void sort(Comparator<T> comparator)
    • splice

      public void splice(IteratorSTL<T> position, ListSTL<T> list, IteratorSTL<T> listPosition)
      moves a single element, decreasing the length of list by 1 and increasing this list by 1.
      Parameters:
      position - the position into this list where the element is to be inserted
      list - the list from which the element is removed.
      listPosition - the postion of the element to be removed.