Class ItemsArrayList<E>

  • All Implemented Interfaces:
    java.lang.Iterable<E>, Items<E>

    public class ItemsArrayList<E>
    extends java.lang.Object
    implements Items<E>
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemsArrayList()  
    • Method Summary

      Modifier and Type Method Description
      boolean add​(E item)  
      java.util.Iterator<E> iterator()  
      boolean remove​(E item)  
      int size()  
      void sort​(java.util.Comparator<E> comparator)  
      void sortAndTrim​(int size, java.util.Comparator<E> comparator, Items.RemoveHandler<E> removeHandler)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ItemsArrayList

        public ItemsArrayList()
    • Method Detail

      • add

        public boolean add​(E item)
        Specified by:
        add in interface Items<E>
      • remove

        public boolean remove​(E item)
        Specified by:
        remove in interface Items<E>
      • size

        public int size()
        Specified by:
        size in interface Items<E>
      • sort

        public void sort​(java.util.Comparator<E> comparator)
        Specified by:
        sort in interface Items<E>
      • iterator

        public java.util.Iterator<E> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<E>
      • toString

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