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:
Iterable<T>, Collection<T>, List<T>

public class CompositeList<T> extends AbstractList<T>
Joined List build from two Lists (read-only). Extremely simple single-purpose implementation.
Since:
7109
  • Field Details

    • a

      private final List<? extends T> a
    • b

      private final List<? extends T> b
  • Constructor Details

    • CompositeList

      public CompositeList(List<? extends T> a, List<? extends T> b)
      Constructs a new CompositeList from two lists.
      Parameters:
      a - First list
      b - Second list
  • Method Details