@InterfaceAudience.Private public class ConcatenatedLists<T> extends Object implements Collection<T>
Modifier and Type | Class and Description |
---|---|
class |
ConcatenatedLists.Iterator |
Modifier and Type | Field and Description |
---|---|
protected ArrayList<List<T>> |
components |
protected int |
size |
Constructor and Description |
---|
ConcatenatedLists() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
void |
addAllSublists(List<? extends List<T>> items) |
void |
addSublist(List<T> items) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<U> U[] |
toArray(U[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
public int size()
size
in interface Collection<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
public boolean contains(Object o)
contains
in interface Collection<T>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
public Object[] toArray()
toArray
in interface Collection<T>
public <U> U[] toArray(U[] a)
toArray
in interface Collection<T>
public boolean add(T e)
add
in interface Collection<T>
public boolean remove(Object o)
remove
in interface Collection<T>
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
public void clear()
clear
in interface Collection<T>
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.