Iteration occurs in the integer order of the keys.
This implementation is thread-safe (assuming Java's AbstractMap and AbstractSet are thread-safe), although its iterators may not be.
The balanced tree is based on the Glasgow Haskell Compiler's Data.Map implementation, which in turn is based on "size balanced binary trees" as described by:
Stephen Adams, "Efficient sets: a balancing act", Journal of Functional Programming 3(4):553-562, October 1993, http://www.swiss.ai.mit.edu/~adams/BB/.
J. Nievergelt and E.M. Reingold, "Binary search trees of bounded balance", SIAM journal of computing 2(1), March 1973.
| Modifier and Type | Field and Description |
|---|---|
| private static final IntTreePMap | |
| private transient Set | |
| private final IntTree | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsKey(final Object
key whose presence in this map is to be tested key)Overrides java. Implements java. Returns |
| public static <V> IntTreePMap | |
| public Set | entrySet()
Implements abstract java. Implements java. Returns a |
| public static <V> IntTreePMap | |
| public V | get(final Object
the key whose associated value is to be returned key)Overrides java. Implements java. Returns the value to which the specified key is mapped,
or |
| public IntTreePMap | |
| public IntTreePMap | |
| public IntTreePMap | |
| public IntTreePMap | |
| public IntTreePMap | |
| public static <V> IntTreePMap | |
| public int | size()
Overrides java. Implements java. Returns the number of key-value mappings in this map. |
| pack-priv IntTreePMap | |
| pack-priv IntTreePMap | |
| private IntTreePMap |
| EMPTY | back to summary |
|---|---|
| private static final IntTreePMap<Object> EMPTY | |
| entrySet | back to summary |
|---|---|
| private transient Set<Map. | |
| root | back to summary |
|---|---|
| private final IntTree<V> root | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| IntTreePMap | back to summary |
|---|---|
| private IntTreePMap(final IntTree<V> root) | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final Object key) Overrides java. Implements java. Doc from java. Returns | |
| empty | back to summary |
|---|---|
public static <V> IntTreePMap
| |
| entrySet | back to summary |
|---|---|
| public Set Implements abstract java. Implements java. Doc from java. Returns a | |
| from | back to summary |
|---|---|
public static <V> IntTreePMap
| |
| get | back to summary |
|---|---|
| public V get(final Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| minus | back to summary |
|---|---|
| public IntTreePMap Implements org.
| |
| minusAll | back to summary |
|---|---|
| public IntTreePMap Implements org.
| |
| minusRange | back to summary |
|---|---|
public IntTreePMap
| |
| plus | back to summary |
|---|---|
| public IntTreePMap Implements org.
| |
| plusAll | back to summary |
|---|---|
| public IntTreePMap Implements org.
| |
| singleton | back to summary |
|---|---|
public static <V> IntTreePMap
| |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| withKeysChangedAbove | back to summary |
|---|---|
| pack-priv IntTreePMap | |
| withKeysChangedBelow | back to summary |
|---|---|
| pack-priv IntTreePMap | |
| withRoot | back to summary |
|---|---|
| private IntTreePMap | |