Package generic.stl

Class ListSTL<T>


  • public class ListSTL<T>
    extends java.lang.Object
    • Field Detail

      • EOL

        public static final java.lang.String EOL
    • Constructor Detail

      • ListSTL

        public ListSTL()
    • Method Detail

      • toString

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

        public void printDebug()
      • 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)
      • pop_front

        public T pop_front()
      • pop_back

        public T pop_back()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • sort

        public void sort​(java.util.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.