Class ConcurrentReversedRadixTree.ConcurrentReverseRadixTreeImpl<O>
java.lang.Object
com.googlecode.concurrenttrees.radix.ConcurrentRadixTree<O>
com.googlecode.concurrenttrees.radixreversed.ConcurrentReversedRadixTree.ConcurrentReverseRadixTreeImpl<O>
- All Implemented Interfaces:
PrettyPrintable
,RadixTree<O>
,Serializable
- Enclosing class:
ConcurrentReversedRadixTree<O>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.googlecode.concurrenttrees.radix.ConcurrentRadixTree
ConcurrentRadixTree.KeyValuePairImpl<O>, ConcurrentRadixTree.NodeKeyPair
-
Field Summary
Fields inherited from class com.googlecode.concurrenttrees.radix.ConcurrentRadixTree
root
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CharSequence
transformKeyForResult
(CharSequence rawKey) A hook method which may be overridden by subclasses, to transform a key just before it is returned to the application, for example by theConcurrentRadixTree.getKeysStartingWith(CharSequence)
or theConcurrentRadixTree.getKeyValuePairsForKeysStartingWith(CharSequence)
methods.Methods inherited from class com.googlecode.concurrenttrees.radix.ConcurrentRadixTree
acquireWriteLock, getClosestKeys, getKeysStartingWith, getKeyValuePairsForClosestKeys, getKeyValuePairsForKeysStartingWith, getNode, getValueForExactKey, getValuesForClosestKeys, getValuesForKeysStartingWith, lazyTraverseDescendants, put, putIfAbsent, releaseWriteLock, remove, size
-
Constructor Details
-
ConcurrentReverseRadixTreeImpl
-
-
Method Details
-
transformKeyForResult
Description copied from class:ConcurrentRadixTree
A hook method which may be overridden by subclasses, to transform a key just before it is returned to the application, for example by theConcurrentRadixTree.getKeysStartingWith(CharSequence)
or theConcurrentRadixTree.getKeyValuePairsForKeysStartingWith(CharSequence)
methods. This hook is expected to be used byReversedRadixTree
implementations, where keys are stored in the tree in reverse order but results should be returned in normal order. This default implementation simply returns the given key unmodified.- Overrides:
transformKeyForResult
in classConcurrentRadixTree<O>
- Parameters:
rawKey
- The raw key as stored in the tree- Returns:
- A transformed version of the key
-