cz.cuni.amis.utils.collections
Class CombinedList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
cz.cuni.amis.utils.collections.CombinedList<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>, List<T>
public class CombinedList<T>
- extends AbstractList<T>
An unmodifiable list that combines several child lists.
The list represent view on the underlying lists, so if they are modified,
so is this list.
- Author:
- Martin Cerny
|
Method Summary |
T |
get(int index)
|
int |
size()
|
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
CombinedList
public CombinedList(List<List<T>> lists)
CombinedList
public CombinedList(List<T>... lists)
get
public T get(int index)
- Specified by:
get in interface List<T>- Specified by:
get in class AbstractList<T>
size
public int size()
- Specified by:
size in interface Collection<T>- Specified by:
size in interface List<T>- Specified by:
size in class AbstractCollection<T>
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.