Package org.openstreetmap.josm.tools
Class CompositeList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- org.openstreetmap.josm.tools.CompositeList<T>
-
- Type Parameters:
T- item type
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Collection<T>,java.util.List<T>
public class CompositeList<T> extends java.util.AbstractList<T>
Joined List build from two Lists (read-only). Extremely simple single-purpose implementation.- Since:
- 7109
-
-
Constructor Summary
Constructors Constructor Description CompositeList(java.util.List<? extends T> a, java.util.List<? extends T> b)Constructs a newCompositeListfrom two lists.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(int index)intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
CompositeList
public CompositeList(java.util.List<? extends T> a, java.util.List<? extends T> b)
Constructs a newCompositeListfrom two lists.- Parameters:
a- First listb- Second list
-
-