Package org.fluentlenium.core.domain
Class ListImpl<T>
- java.lang.Object
-
- org.fluentlenium.core.domain.ListImpl<T>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
- Direct Known Subclasses:
DelegatingList
,LazyComponentList
public abstract class ListImpl<T> extends Object implements List<T>
-
-
Constructor Summary
Constructors Constructor Description ListImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(int index, T element)
boolean
add(T element)
boolean
addAll(int index, Collection<? extends T> collection)
boolean
addAll(Collection<? extends T> collection)
void
clear()
boolean
contains(Object obj)
boolean
containsAll(Collection<?> collection)
T
get(int index)
abstract List<T>
getList()
int
indexOf(Object obj)
boolean
isEmpty()
Iterator<T>
iterator()
int
lastIndexOf(Object obj)
ListIterator<T>
listIterator()
ListIterator<T>
listIterator(int index)
T
remove(int index)
boolean
remove(Object obj)
boolean
removeAll(Collection<?> collection)
boolean
retainAll(Collection<?> collection)
T
set(int index, T element)
int
size()
List<T>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<T> T[]
toArray(T[] elements)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
clear
public void clear()
-
isEmpty
public boolean isEmpty()
-
containsAll
public boolean containsAll(Collection<?> collection)
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
add
public boolean add(T element)
-
remove
public boolean remove(Object obj)
-
size
public int size()
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
contains
public boolean contains(Object obj)
-
toArray
public Object[] toArray()
-
retainAll
public boolean retainAll(Collection<?> collection)
-
lastIndexOf
public int lastIndexOf(Object obj)
- Specified by:
lastIndexOf
in interfaceList<T>
-
toArray
public <T> T[] toArray(T[] elements)
-
removeAll
public boolean removeAll(Collection<?> collection)
-
addAll
public boolean addAll(Collection<? extends T> collection)
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
-
addAll
public boolean addAll(int index, Collection<? extends T> collection)
-
-