Map interface.
| Modifier and Type | Class and Description |
|---|---|
| private class | AbstractPatriciaTrie.EntrySet
This is a entry set view of the |
| private class | AbstractPatriciaTrie.KeySet
This is a key set view of the |
| private class | AbstractPatriciaTrie.PrefixRangeEntrySet
A prefix |
| private class | AbstractPatriciaTrie.PrefixRangeMap
A submap used for prefix views over the |
| private class | |
| private class | |
| private abstract class | AbstractPatriciaTrie.RangeMap
A range view of the |
| private static class | AbstractPatriciaTrie.Reference<E>
A |
| protected static class | AbstractPatriciaTrie.TrieEntry<K, V>
A |
| pack-priv abstract class | |
| private class | |
| private class | AbstractPatriciaTrie.Values
This is a value view of the |
| Modifier and Type | Field and Description |
|---|---|
| private transient volatile Set | |
| private transient volatile Set | keySet
Hides java. |
| protected transient int | modCount
The number of times this |
| private transient AbstractPatriciaTrie. | root
The root node of the |
| private static final long | |
| private transient int | size
The current size of the |
| private transient volatile Collection |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractPatriciaTrie(final KeyAnalyzer<? super K> keyAnalyzer, final Map<? extends K, ? extends V> map)
Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv AbstractPatriciaTrie. | addEntry(final AbstractPatriciaTrie.
|
| pack-priv AbstractPatriciaTrie. | ceilingEntry(final K key)
Returns a key-value mapping associated with the least key greater than or equal to the given key, or null if there is no such key. |
| public void | clear()
Overrides java. Implements java. |
| public Comparator | comparator()
Implements java. null if this map uses the natural ordering of its keys.
|
| public boolean | containsKey(final Object
key whose presence in this map is to be tested k)Overrides java. Implements java. true if this map contains a mapping for the specified
key.
|
| pack-priv void | |
| public Set | entrySet()
Implements abstract java. Implements java. Set view of the mappings contained in this map.
|
| pack-priv AbstractPatriciaTrie. | firstEntry()
Overrides default java. Trie is storing.
|
| public K | firstKey()
Implements java. |
| pack-priv AbstractPatriciaTrie. | floorEntry(final K key)
Returns a key-value mapping associated with the greatest key less than or equal to the given key, or null if there is no such key. |
| pack-priv AbstractPatriciaTrie. | followLeft(AbstractPatriciaTrie.
Goes left through the tree until it finds a valid node. |
| pack-priv AbstractPatriciaTrie. | followRight(AbstractPatriciaTrie.
Traverses down the right path until it finds an uplink. |
| public V | get(final Object
the key whose associated value is to be returned k)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| pack-priv AbstractPatriciaTrie. | |
| pack-priv AbstractPatriciaTrie. | getNearestEntryForKey(final K key, final int lengthInBits)
Returns the nearest entry for a given key. |
| private SortedMap | getPrefixMapByBits(final K
the key to use in the search key, final int the prefix offset offsetInBits, final int the number of significant prefix bits lengthInBits)Returns a view of this |
| public SortedMap | headMap(final K
high endpoint (exclusive) of the keys in the returned map toKey)Implements java. toKey.
|
| pack-priv AbstractPatriciaTrie. | higherEntry(final K key)
Returns an entry strictly higher than the given key, or null if no such entry exists. |
| private void | |
| pack-priv void | |
| pack-priv static boolean | isValidUplink(final AbstractPatriciaTrie.
Returns true if 'next' is a valid uplink coming from 'from'. |
| public Set | keySet()
Overrides java. Implements java. Set view of the keys contained in this map.
|
| pack-priv AbstractPatriciaTrie. | lastEntry()
Overrides default java. Trie is storing.
|
| public K | lastKey()
Implements java. |
| pack-priv AbstractPatriciaTrie. | lowerEntry(final K key)
Returns a key-value mapping associated with the greatest key strictly less than the given key, or null if there is no such key. |
| public OrderedMapIterator | mapIterator()
Implements org. OrderedMapIterator over the map.
|
| pack-priv AbstractPatriciaTrie. | nextEntry(final AbstractPatriciaTrie.
Returns the entry lexicographically after the given entry. |
| pack-priv AbstractPatriciaTrie. | nextEntryImpl(final AbstractPatriciaTrie.
Scans for the next node, starting at the specified point, and using 'previous' as a hint that the last node we returned was 'previous' (so we know not to return it again). |
| pack-priv AbstractPatriciaTrie. | nextEntryInSubtree(final AbstractPatriciaTrie.
Returns the entry lexicographically after the given entry. |
| public K | nextKey(final K
the key to search for next from key)Implements org. |
| public SortedMap | prefixMap(final K
the key used in the search key)Implements org. Trie of all elements that are prefixed
by the given key.
|
| pack-priv AbstractPatriciaTrie. | previousEntry(final AbstractPatriciaTrie.
the start entry startReturns the node lexicographically before the given node (or null if none). |
| public K | previousKey(final K
the key to search for previous from key)Implements org. |
| public V | put(final K
key with which the specified value is to be associated key, final V value to be associated with the specified key value)Overrides java. Implements java. |
| private void | |
| public V | remove(final Object
key whose mapping is to be removed from the map k)Overrides java. Implements java. |
| pack-priv V | |
| private void | removeExternalEntry(final AbstractPatriciaTrie.
Removes an external entry from the |
| private void | removeInternalEntry(final AbstractPatriciaTrie.
Removes an internal entry from the |
| public Map. | Returns: thejava. whose key is closest in a bitwise XOR metric
to the provided keythe key to use in the search key)Returns the |
| public K | Returns: the key that is closest in a bitwise XOR metric to the provided keythe key to use in the search key)Returns the key that is closest in a bitwise XOR metric to the provided key. |
| private boolean | selectR(final AbstractPatriciaTrie.
This is equivalent to the other |
| public V | Returns: the value whose key is closest in a bitwise XOR metric to the provided keythe key to use in the search key)Returns the value whose key is closest in a bitwise XOR metric to the provided key. |
| public int | size()
Overrides java. Implements java. |
| public SortedMap | subMap(final K
low endpoint (inclusive) of the keys in the returned map fromKey, final K high endpoint (exclusive) of the keys in the returned map toKey)Implements java. fromKey, inclusive, to toKey, exclusive.
|
| pack-priv AbstractPatriciaTrie. | subtree(final K prefix, final int offsetInBits, final int lengthInBits)
Finds the subtree that contains the prefix. |
| public SortedMap | tailMap(final K
low endpoint (inclusive) of the keys in the returned map fromKey)Implements java. fromKey.
|
| public Collection | values()
Overrides java. Implements java. Collection view of the values contained in this map.
|
| private void |