T - the type of the list's elements.public interface IList<T> extends ICollection<T>, List<T>
Lists which also implement ICollection
and therefore provide the IEnumerable functionality additionally to
the java framework classes functionality.| Modifier and Type | Field and Description |
|---|---|
static IList |
EMPTY
An
IList that is always empty. |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
addAll(Collection<? extends T> other) |
default boolean |
addAll(int index,
Collection<? extends T> c)
Default implementation for
List.addAll(int, Collection) that always throws an UnsupportedOperationException. |
default boolean |
containsAll(Collection<?> other) |
default boolean |
isEmpty() |
default Iterator<T> |
iterator() |
default boolean |
remove(Object other) |
default boolean |
removeAll(Collection<?> other) |
default boolean |
retainAll(Collection<?> other) |
default Object[] |
toArray() |
default <E> E[] |
toArray(E[] a) |
parallelStream, streamconcat, concat, create, create, enumeratoradd, add, clear, contains, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, replaceAll, set, size, sort, spliterator, subListremoveIfstatic final IList EMPTY
IList that is always empty.default boolean addAll(Collection<? extends T> other)
addAll in interface Collection<T>addAll in interface ICollection<T>addAll in interface List<T>default boolean addAll(int index,
Collection<? extends T> c)
List.addAll(int, Collection) that always throws an UnsupportedOperationException.addAll in interface List<T>UnsupportedOperationExceptiondefault boolean containsAll(Collection<?> other)
containsAll in interface Collection<T>containsAll in interface ICollection<T>containsAll in interface List<T>default boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface ICollection<T>isEmpty in interface List<T>default Iterator<T> iterator()
iterator in interface Collection<T>iterator in interface ICollection<T>iterator in interface IEnumerable<T>iterator in interface Iterable<T>iterator in interface List<T>default boolean remove(Object other)
remove in interface Collection<T>remove in interface ICollection<T>remove in interface List<T>default boolean removeAll(Collection<?> other)
removeAll in interface Collection<T>removeAll in interface ICollection<T>removeAll in interface List<T>default boolean retainAll(Collection<?> other)
retainAll in interface Collection<T>retainAll in interface ICollection<T>retainAll in interface List<T>default Object[] toArray()
toArray in interface Collection<T>toArray in interface ICollection<T>toArray in interface List<T>default <E> E[] toArray(E[] a)
toArray in interface Collection<T>toArray in interface ICollection<T>toArray in interface List<T>