Class SortableList<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
org.minimalj.repository.list.SortableList<T>
Type Parameters:
T - Class of the Elements
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess, Sortable

public class SortableList<T>
extends java.util.ArrayList<T>
implements Sortable, java.io.Serializable
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class java.util.AbstractList

    modCount
  • Constructor Summary

    Constructors 
    Constructor Description
    SortableList​(java.util.Collection<T> objects)  
  • Method Summary

    Modifier and Type Method Description
    boolean canSortBy​(java.lang.Object sortKey)  
    void sort​(java.lang.Object[] sortKeys, boolean[] sortDirections)  

    Methods inherited from class java.util.ArrayList

    add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize

    Methods inherited from class java.util.AbstractCollection

    containsAll, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, stream, toArray

    Methods inherited from interface java.util.List

    containsAll
  • Constructor Details

    • SortableList

      public SortableList​(java.util.Collection<T> objects)
  • Method Details

    • sort

      public void sort​(java.lang.Object[] sortKeys, boolean[] sortDirections)
      Specified by:
      sort in interface Sortable
    • canSortBy

      public boolean canSortBy​(java.lang.Object sortKey)
      Specified by:
      canSortBy in interface Sortable