@InterfaceAudience.Private public class ConcatenatedLists<T> extends AbstractCollection<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 |
---|---|
void |
addAllSublists(List<? extends List<T>> items) |
void |
addSublist(List<T> items) |
Iterator<T> |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
protected final ArrayList<List<T>> components
protected int size
public ConcatenatedLists()
public void addAllSublists(List<? extends List<T>> items)
public void addSublist(List<T> items)
public int size()
size
in interface Collection<T>
size
in class AbstractCollection<T>
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.