Package com.vladsch.plugin.util
Class SortedArrayList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- com.vladsch.plugin.util.SortedArrayList<T>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<T>,java.util.Collection<T>,java.util.List<T>,java.util.RandomAccess
public class SortedArrayList<T> extends java.util.ArrayList<T>- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortedArrayList(java.util.Comparator<T> comparator)SortedArrayList(java.util.Comparator<T> comparator, int initialCapacity)SortedArrayList(java.util.Comparator<T> comparator, @NotNull java.util.Collection<? extends T> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanadd(T t)booleanaddAll(int index, java.util.Collection<? extends T> c)booleanaddAll(java.util.Collection<? extends T> c)voidforEach(java.util.function.Consumer<? super T> action)voidforEachAfter(T t, java.util.function.Consumer<? super T> action)voidforEachBefore(T t, java.util.function.Consumer<? super T> action)booleanremoveIfAfter(T t, java.util.function.Consumer<? super T> action)booleanremoveIfBefore(T t, java.util.function.Consumer<? super T> action)voidsort(java.util.Comparator<? super T> c)@NotNull java.util.List<T>subList(int fromIndex, int toIndex)-
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, spliterator, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
add
public boolean add(T t)
-
add
public void add(int index, T element)
-
addAll
public boolean addAll(java.util.Collection<? extends T> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends T> c)
-
subList
@NotNull public @NotNull java.util.List<T> subList(int fromIndex, int toIndex)
-
forEach
public void forEach(java.util.function.Consumer<? super T> action)
-
-