public class DoubleArrayList<A,B>
extends java.lang.Object
implements java.lang.Iterable<java.util.Map.Entry<A,B>>
The usefulness of this class is highly questionable.
Modifier and Type | Class and Description |
---|---|
class |
DoubleArrayList.Entry<C,D>
Class to masquerade as Map.Entry.
|
class |
DoubleArrayList.ForwardEntryIterator<T extends java.util.Map.Entry<A,B>>
Entry iterator.
|
class |
DoubleArrayList.ReverseEntryIterator<T extends java.util.Map.Entry<A,B>>
Entry iterator.
|
Constructor and Description |
---|
DoubleArrayList(boolean isReversed)
Construct the object.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the list.
|
java.util.Iterator<java.util.Map.Entry<A,B>> |
iterator() |
java.util.Iterator<java.util.Map.Entry<A,B>> |
iterator(boolean reversed)
Get an entry set.
|
void |
put(A a,
B b)
Add an item.
|
int |
size()
Get size.
|
public DoubleArrayList(boolean isReversed)
isReversed
- true if the list should be reversed