Class OrderedList<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
gw.lang.enhancements.OrderedList<T>
- All Implemented Interfaces:
IOrderedList<T>, Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrderBy(OrderedList.IToComparable<T> block) voidaddOrderBy(OrderedList.IToComparable<T> block, Comparator comparator) voidvoidaddOrderByDescending(OrderedList.IToComparable<T> block, Comparator comparator) addThenBy(OrderedList.IToComparable<T> block) addThenBy(OrderedList.IToComparable<T> block, Comparator comparator) addThenByDescending(OrderedList.IToComparable<T> block, Comparator comparator) get(int index) iterator()intsize()Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
OrderedList
-
-
Method Details
-
addOrderBy
-
addOrderBy
-
addOrderByDescending
-
addOrderByDescending
-
addThenBy
-
addThenBy
-
addThenByDescending
-
addThenByDescending
public OrderedList<T> addThenByDescending(OrderedList.IToComparable<T> block, Comparator comparator) -
get
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
iterator
-