Located in compilation unit of io.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | HashArrayMappedTrieModule.
Key type K, Value type V>An abstract base class for nodes of a HAMT. |
| public static enum | |
| public static class | |
| public static class | |
| public static class | |
| public static class | HashArrayMappedTrieModule.
Key type K, Value type V>Representation of a HAMT leaf node with more than one element. |
| public abstract static class | |
| public static class | |
| public static class | HashArrayMappedTrieModule.
Key type K, Value type V>Representation of a HAMT leaf node with single element. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final long | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| pack-priv static int | |
| public Option | |
| public V | |
| pack-priv static int | |
| pack-priv static Object[] | |
| public Iterator | iterator()
Implements io. Returns an iterator over elements of type |
| public Iterator | keysIterator()
Implements io. Provide unboxed access to the keys in the trie. |
| pack-priv abstract Option | |
| pack-priv abstract V | |
| pack-priv abstract HashArrayMappedTrieModule. | |
| pack-priv Iterator | |
| public HashArrayMappedTrie | |
| pack-priv static Object[] | |
| public HashArrayMappedTrie | |
| pack-priv static int | |
| public final String | |
| pack-priv static Object[] | |
| public Iterator | valuesIterator()
Implements io. Provide unboxed access to the values in the trie. |
| BUCKET_SIZE | back to summary |
|---|---|
| pack-priv static final int BUCKET_SIZE | |
| MAX_INDEX_NODE | back to summary |
|---|---|
| pack-priv static final int MAX_INDEX_NODE | |
| MIN_ARRAY_NODE | back to summary |
|---|---|
| pack-priv static final int MIN_ARRAY_NODE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| SIZE | back to summary |
|---|---|
| pack-priv static final int SIZE | |
| AbstractNode | back to summary |
|---|---|
| public AbstractNode() | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(K key) Implements io.
| |
| fromBitmap | back to summary |
|---|---|
| pack-priv static int fromBitmap(int bitmap, int bit) | |
| get | back to summary |
|---|---|
| public Option Implements io.
| |
| getOrElse | back to summary |
|---|---|
| public V getOrElse(K key, V defaultValue) Implements io.
| |
| hashFragment | back to summary |
|---|---|
| pack-priv static int hashFragment(int shift, int hash) | |
| insert | back to summary |
|---|---|
| pack-priv static Object[] insert(Object[] arr, int index, Object newElem) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements io. Doc from java. Returns an iterator over elements of type | |
| keysIterator | back to summary |
|---|---|
| public Iterator Implements io. Doc from io. Provide unboxed access to the keys in the trie.
| |
| lookup | back to summary |
|---|---|
| pack-priv abstract Option | |
| lookup | back to summary |
|---|---|
| pack-priv abstract V lookup(int shift, int keyHash, K key, V defaultValue) | |
| modify | back to summary |
|---|---|
| pack-priv abstract HashArrayMappedTrieModule. | |
| nodes | back to summary |
|---|---|
| pack-priv Iterator | |
| put | back to summary |
|---|---|
| public HashArrayMappedTrie Implements io.
| |
| remove | back to summary |
|---|---|
| pack-priv static Object[] remove(Object[] arr, int index) | |
| remove | back to summary |
|---|---|
| public HashArrayMappedTrie Implements io.
| |
| toBitmap | back to summary |
|---|---|
| pack-priv static int toBitmap(int hash) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| update | back to summary |
|---|---|
| pack-priv static Object[] update(Object[] arr, int index, Object newElement) | |
| valuesIterator | back to summary |
|---|---|
| public Iterator Implements io. Doc from io. Provide unboxed access to the values in the trie.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final HashArrayMappedTrieModule. | |
| public static final HashArrayMappedTrieModule. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HashArrayMappedTrieModule. | |
| public static HashArrayMappedTrieModule. |
| PUT | back to summary |
|---|---|
| public static final HashArrayMappedTrieModule. | |
| REMOVE | back to summary |
|---|---|
| public static final HashArrayMappedTrieModule. | |
| Action | back to summary |
|---|---|
| private Action() | |
| valueOf | back to summary |
|---|---|
| public static HashArrayMappedTrieModule. | |
| values | back to summary |
|---|---|
| public static HashArrayMappedTrieModule. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final long | |
| private final int | |
| private final Object[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| pack-priv Option | lookup(int shift, int keyHash, K key)
Implements abstract io.
|
| pack-priv V | lookup(int shift, int keyHash, K key, V defaultValue)
Implements abstract io.
|
| pack-priv HashArrayMappedTrieModule. | modify(int shift, int keyHash, K key, V value, HashArrayMappedTrieModule.
Implements abstract io.
|
| private HashArrayMappedTrieModule. | |
| public int |
| count | back to summary |
|---|---|
| private final int count | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| size | back to summary |
|---|---|
| private final int size | |
| subNodes | back to summary |
|---|---|
private final Object[] subNodes
| |
| ArrayNode | back to summary |
|---|---|
| pack-priv ArrayNode(int count, int size, Object[] subNodes) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io.
| |
| lookup | back to summary |
|---|---|
| pack-priv Option Implements abstract io.
| |
| lookup | back to summary |
|---|---|
| pack-priv V lookup(int shift, int keyHash, K key, V defaultValue) Implements abstract io.
| |
| modify | back to summary |
|---|---|
| pack-priv HashArrayMappedTrieModule. Implements abstract io.
| |
| pack | back to summary |
|---|---|
private HashArrayMappedTrieModule.
| |
| size | back to summary |
|---|---|
| public int size() Implements io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final HashArrayMappedTrieModule. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <K, V> HashArrayMappedTrieModule. | |
| public boolean | |
| pack-priv Option | lookup(int shift, int keyHash, K key)
Implements abstract io.
|
| pack-priv V | lookup(int shift, int keyHash, K key, V defaultValue)
Implements abstract io.
|
| pack-priv HashArrayMappedTrieModule. | modify(int shift, int keyHash, K key, V value, HashArrayMappedTrieModule.
Implements abstract io.
|
| public Iterator | |
| private Object | Returns: The singleton instance of EmptyNode.Instance control for object serialization. |
| public int |
| INSTANCE | back to summary |
|---|---|
| private static final HashArrayMappedTrieModule. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| EmptyNode | back to summary |
|---|---|
| private EmptyNode() | |
| instance | back to summary |
|---|---|
pack-priv static <K, V> HashArrayMappedTrieModule.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io.
| |
| lookup | back to summary |
|---|---|
| pack-priv Option Implements abstract io.
| |
| lookup | back to summary |
|---|---|
| pack-priv V lookup(int shift, int keyHash, K key, V defaultValue) Implements abstract io.
| |
| modify | back to summary |
|---|---|
| pack-priv HashArrayMappedTrieModule. Implements abstract io.
| |
| nodes | back to summary |
|---|---|
| public Iterator Overrides io.
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() Instance control for object serialization.
| |
| size | back to summary |
|---|---|
| public int size() Implements io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final long | |
| private final int | |
| private final Object[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private HashArrayMappedTrieModule. | |
| public boolean | |
| pack-priv Option | lookup(int shift, int keyHash, K key)
Implements abstract io.
|
| pack-priv V | lookup(int shift, int keyHash, K key, V defaultValue)
Implements abstract io.
|
| pack-priv HashArrayMappedTrieModule. | modify(int shift, int keyHash, K key, V value, HashArrayMappedTrieModule.
Implements abstract io.
|
| public int |
| bitmap | back to summary |
|---|---|
| private final int bitmap | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| size | back to summary |
|---|---|
| private final int size | |
| subNodes | back to summary |
|---|---|
private final Object[] subNodes
| |
| IndexedNode | back to summary |
|---|---|
| pack-priv IndexedNode(int bitmap, int size, Object[] subNodes) | |
| expand | back to summary |
|---|---|
| private HashArrayMappedTrieModule. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io.
| |
| lookup | back to summary |
|---|---|
| pack-priv Option Implements abstract io.
| |
| lookup | back to summary |
|---|---|
| pack-priv V lookup(int shift, int keyHash, K key, V defaultValue) Implements abstract io.
| |
| modify | back to summary |
|---|---|
| pack-priv HashArrayMappedTrieModule. Implements abstract io.
| |
| size | back to summary |
|---|---|
| public int size() Implements io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final K | |
| private static final long | |
| private final int | |
| private final HashArrayMappedTrieModule. | |
| private final V |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv K | |
| pack-priv Option | lookup(int shift, int keyHash, K key)
Implements abstract io.
|
| pack-priv V | lookup(int shift, int keyHash, K key, V defaultValue)
Implements abstract io.
|
| private static <K, V> HashArrayMappedTrieModule. | mergeNodes(HashArrayMappedTrieModule.
|
| pack-priv HashArrayMappedTrieModule. | modify(int shift, int keyHash, K key, V value, HashArrayMappedTrieModule.
Implements abstract io.
|
| public Iterator | |
| private HashArrayMappedTrieModule. | |
| public int | |
| pack-priv V |
| hash | back to summary |
|---|---|
| private final int hash | |
| key | back to summary |
|---|---|
private final K key
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| size | back to summary |
|---|---|
| private final int size | |
| tail | back to summary |
|---|---|
| private final HashArrayMappedTrieModule. | |
| value | back to summary |
|---|---|
private final V value
| |
| LeafList | back to summary |
|---|---|
| pack-priv LeafList(int hash, K key, V value, HashArrayMappedTrieModule. | |
| hash | back to summary |
|---|---|
| pack-priv int hash() Implements abstract io.
| |
| key | back to summary |
|---|---|
| pack-priv K key() Implements abstract io.
| |
| lookup | back to summary |
|---|---|
| pack-priv Option Implements abstract io.
| |
| lookup | back to summary |
|---|---|
| pack-priv V lookup(int shift, int keyHash, K key, V defaultValue) Implements abstract io.
| |
| mergeNodes | back to summary |
|---|---|
| private static <K, V> HashArrayMappedTrieModule. | |
| modify | back to summary |
|---|---|
| pack-priv HashArrayMappedTrieModule. Implements abstract io.
| |
| nodes | back to summary |
|---|---|
| public Iterator Overrides io.
| |
| removeElement | back to summary |
|---|---|
| private HashArrayMappedTrieModule. | |
| size | back to summary |
|---|---|
| public int size() Implements io.
| |
| value | back to summary |
|---|---|
| pack-priv V value() Implements abstract io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract int | |
| public boolean | |
| pack-priv abstract K | |
| pack-priv static <K, V> HashArrayMappedTrieModule. | mergeLeaves(int shift, HashArrayMappedTrieModule.
|
| pack-priv abstract V |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| LeafNode | back to summary |
|---|---|
| public LeafNode() | |
| hash | back to summary |
|---|---|
| pack-priv abstract int hash() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io.
| |
| key | back to summary |
|---|---|
| pack-priv abstract K key() | |
| mergeLeaves | back to summary |
|---|---|
| pack-priv static <K, V> HashArrayMappedTrieModule. | |
| value | back to summary |
|---|---|
| pack-priv abstract V value() | |
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private int | |
| private static final int | |
| private final Object[] | |
| private int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static <K, V> int | downstairs(Object[] nodes, int[] indexes, HashArrayMappedTrieModule.
|
| private Object | |
| private static <K, V> HashArrayMappedTrieModule. | |
| protected HashArrayMappedTrieModule. | |
| public boolean |
| indexes | back to summary |
|---|---|
| private final int[] indexes | |
| level | back to summary |
|---|---|
| private int level | |
| MAX_LEVELS | back to summary |
|---|---|
| private static final int MAX_LEVELS | |
| nodes | back to summary |
|---|---|
| private final Object[] nodes | |
| ptr | back to summary |
|---|---|
| private int ptr | |
| total | back to summary |
|---|---|
| private final int total | |
| LeafNodeIterator | back to summary |
|---|---|
| pack-priv LeafNodeIterator(HashArrayMappedTrieModule. | |
| downstairs | back to summary |
|---|---|
| private static <K, V> int downstairs(Object[] nodes, int[] indexes, HashArrayMappedTrieModule. | |
| findNextLeaf | back to summary |
|---|---|
private Object findNextLeaf()
| |
| getChild | back to summary |
|---|---|
private static <K, V> HashArrayMappedTrieModule.
| |
| getNext | back to summary |
|---|---|
| protected HashArrayMappedTrieModule. Implements abstract io.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final K | |
| private static final long | |
| private final V |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| pack-priv int | |
| pack-priv K | |
| pack-priv Option | lookup(int shift, int keyHash, K key)
Implements abstract io.
|
| pack-priv V | lookup(int shift, int keyHash, K key, V defaultValue)
Implements abstract io.
|
| pack-priv HashArrayMappedTrieModule. | modify(int shift, int keyHash, K key, V value, HashArrayMappedTrieModule.
Implements abstract io.
|
| public Iterator | |
| public int | |
| pack-priv V |
| hash | back to summary |
|---|---|
| private final int hash | |
| key | back to summary |
|---|---|
private final K key
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| value | back to summary |
|---|---|
private final V value
| |
| LeafSingleton | back to summary |
|---|---|
| pack-priv LeafSingleton(int hash, K key, V value) | |
| equals | back to summary |
|---|---|
| private boolean equals(int keyHash, K key) | |
| hash | back to summary |
|---|---|
| pack-priv int hash() Implements abstract io.
| |
| key | back to summary |
|---|---|
| pack-priv K key() Implements abstract io.
| |
| lookup | back to summary |
|---|---|
| pack-priv Option Implements abstract io.
| |
| lookup | back to summary |
|---|---|
| pack-priv V lookup(int shift, int keyHash, K key, V defaultValue) Implements abstract io.
| |
| modify | back to summary |
|---|---|
| pack-priv HashArrayMappedTrieModule. Implements abstract io.
| |
| nodes | back to summary |
|---|---|
| public Iterator Overrides io.
| |
| size | back to summary |
|---|---|
| public int size() Implements io.
| |
| value | back to summary |
|---|---|
| pack-priv V value() Implements abstract io.
| |