Interface Items<E>

  • All Superinterfaces:
    java.lang.Iterable<E>
    All Known Implementing Classes:
    ItemsArrayList

    public interface Items<E>
    extends java.lang.Iterable<E>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Items.RemoveHandler<E>  
    • Method Summary

      Modifier and Type Method Description
      boolean add​(E item)  
      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)  
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • add

        boolean add​(E item)
      • remove

        boolean remove​(E item)
      • size

        int size()
      • sort

        void sort​(java.util.Comparator<E> comparator)
      • sortAndTrim

        void sortAndTrim​(int size,
                         java.util.Comparator<E> comparator,
                         Items.RemoveHandler<E> removeHandler)