A
- the first type in the tupleB
- the second type in the tuplepublic class TupleArrayList<A,B>
extends java.util.ArrayList<java.util.Map.Entry<A,B>>
ArrayList
that takes Map.Entry
-like tuples. This class
exists for legacy reasons.Constructor and Description |
---|
TupleArrayList() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.util.Map.Entry<A,B>> |
iterator() |
java.util.Iterator<java.util.Map.Entry<A,B>> |
iterator(boolean reverse)
Return an entry iterator that traverses in the reverse direction.
|
void |
put(A a,
B b)
Add an item to the list.
|
java.util.Iterator<java.util.Map.Entry<A,B>> |
reverseIterator()
Return an entry iterator that traverses in the reverse direction.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public java.util.Iterator<java.util.Map.Entry<A,B>> iterator(boolean reverse)
reverse
- true to return the reverse iteratorpublic java.util.Iterator<java.util.Map.Entry<A,B>> iterator()
iterator
in interface java.lang.Iterable<java.util.Map.Entry<A,B>>
iterator
in interface java.util.Collection<java.util.Map.Entry<A,B>>
iterator
in interface java.util.List<java.util.Map.Entry<A,B>>
iterator
in class java.util.ArrayList<java.util.Map.Entry<A,B>>