Package net.hydromatic.morel.util
Class Pair.MutableZipList<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Pair<K,V>>
-
- net.hydromatic.morel.util.Pair.MutableZipList<K,V>
-
- Type Parameters:
K- Key (left) value typeV- Value (right) value type
private static class Pair.MutableZipList<K,V> extends AbstractList<Pair<K,V>>
A mutable list of pairs backed by a pair of mutable lists.Modifications to this list are reflected in the backing lists, and vice versa.
-
-
Constructor Summary
Constructors Constructor Description MutableZipList(List<K> ks, List<V> vs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Pair<K,V> pair)Pair<K,V>get(int index)Pair<K,V>remove(int index)Pair<K,V>set(int index, Pair<K,V> pair)intsize()-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-