public static class PatriciaTrie.StringKeyMapper extends java.lang.Object implements PatriciaTrie.KeyMapper<java.lang.String>
PatriciaTrie.KeyMapper
mapping Strings to bitsConstructor and Description |
---|
StringKeyMapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSet(int bit,
java.lang.String key)
Tests a bit in a key
|
java.lang.String |
toBitString(java.lang.String key)
Formats a key as a String
|
public boolean isSet(int bit, java.lang.String key)
PatriciaTrie.KeyMapper
isSet
in interface PatriciaTrie.KeyMapper<java.lang.String>
bit
- bit to testkey
- key to use as a base for testingpublic java.lang.String toBitString(java.lang.String key)
PatriciaTrie.KeyMapper
toBitString
in interface PatriciaTrie.KeyMapper<java.lang.String>
key
- key to format to a String