Class ListAdapater<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- com.github.andrewoma.dexx.collection.internal.adapter.ListAdapater<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
public class ListAdapater<E> extends java.util.AbstractList<E>
-
-
Constructor Summary
Constructors Constructor Description ListAdapater(List<E> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E e)
boolean
addAll(@NotNull java.util.Collection<? extends E> c)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(@NotNull java.util.Collection<?> c)
E
get(int index)
boolean
isEmpty()
@NotNull java.util.Iterator<E>
iterator()
boolean
remove(java.lang.Object o)
boolean
removeAll(@NotNull java.util.Collection<?> c)
boolean
retainAll(@NotNull java.util.Collection<?> c)
int
size()
@NotNull java.lang.Object[]
toArray()
<T> @NotNull T[]
toArray(@NotNull T[] a)
-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
@NotNull public @NotNull java.util.Iterator<E> iterator()
-
toArray
@NotNull public @NotNull java.lang.Object[] toArray()
-
toArray
@NotNull public <T> @NotNull T[] toArray(@NotNull @NotNull T[] a)
-
add
public boolean add(E e)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(@NotNull @NotNull java.util.Collection<?> c)
-
addAll
public boolean addAll(@NotNull @NotNull java.util.Collection<? extends E> c)
-
retainAll
public boolean retainAll(@NotNull @NotNull java.util.Collection<?> c)
-
removeAll
public boolean removeAll(@NotNull @NotNull java.util.Collection<?> c)
-
clear
public void clear()
-
-