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
- All Implemented Interfaces:
java.lang.Iterable<Pair<K,V>>,java.util.Collection<Pair<K,V>>,java.util.List<Pair<K,V>>
private static class Pair.MutableZipList<K,V> extends java.util.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(java.util.List<K> ks, java.util.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
-
-