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(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(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(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) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
protected List<E> |
toList() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public 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(Object o)
@Nonnull public ListIterator<E> listIterator()
listIterator
in interface List<E>
@Nonnull public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
public int indexOf(Object o)
public int lastIndexOf(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(@Nonnull Collection<? extends E> c)
addAll
in interface Collection<E>
addAll
in interface List<E>
public boolean addAll(int index, @Nonnull Collection<? extends E> c)
public boolean removeAll(@Nonnull Collection<?> c)
removeAll
in interface Collection<E>
removeAll
in interface List<E>
public boolean retainAll(@Nonnull 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 boolean contains(Object o)
contains
in interface Collection<E>
contains
in interface List<E>
public boolean containsAll(@Nonnull Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface List<E>
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface List<E>
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.