Package org.mongojack
Class AbstractListDecorator<E>
- java.lang.Object
-
- org.mongojack.AbstractListDecorator<E>
-
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
public abstract class AbstractListDecorator<E> extends Object implements List<E>
-
-
Constructor Summary
Constructors Constructor Description AbstractListDecorator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, Collection<? extends E> c)
boolean
addAll(Collection<? extends E> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
protected abstract List<E>
delegate()
boolean
equals(Object o)
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)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
toArray
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(E e)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
addAll
public boolean addAll(Collection<? extends E> c)
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
replaceAll
public void replaceAll(UnaryOperator<E> operator)
- Specified by:
replaceAll
in interfaceList<E>
-
sort
public void sort(Comparator<? super E> c)
-
clear
public void clear()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfaceList<E>
-
spliterator
public Spliterator<E> spliterator()
- Specified by:
spliterator
in interfaceCollection<E>
- Specified by:
spliterator
in interfaceIterable<E>
- Specified by:
spliterator
in interfaceList<E>
-
removeIf
public boolean removeIf(Predicate<? super E> filter)
- Specified by:
removeIf
in interfaceCollection<E>
-
stream
public Stream<E> stream()
- Specified by:
stream
in interfaceCollection<E>
-
parallelStream
public Stream<E> parallelStream()
- Specified by:
parallelStream
in interfaceCollection<E>
-
-