public class SubstringMap<V> extends Object
This class uses linear probing and is thread safe due to copy on write semantics. As such it is not recomended for data that changes frequently.
This class does not actually implement the map interface to avoid implementing unnecessary operations.
Modifier and Type | Class and Description |
---|---|
static class |
SubstringMap.SubstringMatch<V> |
Constructor and Description |
---|
SubstringMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
SubstringMap.SubstringMatch<V> |
get(String key) |
SubstringMap.SubstringMatch<V> |
get(String key,
int length) |
Iterable<String> |
keys() |
void |
put(String key,
V value) |
V |
remove(String key) |
Map<String,V> |
toMap() |
public SubstringMap.SubstringMatch<V> get(String key, int length)
public SubstringMap.SubstringMatch<V> get(String key)
public void clear()
Copyright © 2020 JBoss by Red Hat. All rights reserved.