E - 元素类型public class ListWrapper<E> extends SimpleWrapper<List<E>> implements List<E>
raw| Constructor and Description |
|---|
ListWrapper(List<E> raw)
构造
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
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 obj) |
void |
forEach(Consumer<? super E> action) |
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) |
Stream<E> |
parallelStream() |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super E> filter) |
void |
replaceAll(UnaryOperator<E> operator) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
void |
sort(Comparator<? super E> c) |
Spliterator<E> |
spliterator() |
Stream<E> |
stream() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
getRawpublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index,
Collection<? extends E> c)
public boolean removeAll(Collection<?> c)
public boolean removeIf(Predicate<? super E> filter)
removeIf in interface Collection<E>public boolean retainAll(Collection<?> c)
public void replaceAll(UnaryOperator<E> operator)
replaceAll in interface List<E>public void sort(Comparator<? super E> c)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>public Spliterator<E> spliterator()
spliterator in interface Iterable<E>spliterator in interface Collection<E>spliterator in interface List<E>public Stream<E> stream()
stream in interface Collection<E>public Stream<E> parallelStream()
parallelStream in interface Collection<E>public int hashCode()
Copyright © 2025. All rights reserved.