E - Element typepublic class ConsList<E> extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E t) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(@Nullable Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(@Nullable Object o) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(@Nullable Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(@Nullable Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
static <E> List<E> |
of(E first,
List<? extends E> rest)
Creates a ConsList.
|
E |
remove(int index) |
boolean |
remove(@Nullable Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
@PolyNull Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
protected List<E> |
toList() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic static <E> List<E> of(E first, List<? extends E> rest)
public E get(int index)
public int size()
public int hashCode()
public boolean equals(@Nullable Object o)
public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>public @PolyNull Object[] toArray()
public <T> T[] toArray(T[] a)
public int indexOf(@Nullable Object o)
public int lastIndexOf(@Nullable Object o)
public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>public boolean add(E t)
add in interface Collection<E>add in interface List<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface List<E>public boolean addAll(int index,
Collection<? extends E> c)
public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface List<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface List<E>public void clear()
clear in interface Collection<E>clear in interface List<E>public List<E> subList(int fromIndex, int toIndex)
public boolean contains(@Nullable Object o)
contains in interface Collection<E>contains in interface List<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean remove(@Nullable Object o)
remove in interface Collection<E>remove in interface List<E>Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.