public class StringMaps extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
StringMaps.PrefixMapWrapper<T extends CharSequence> |
protected static class |
StringMaps.StringMapWrapper<T extends CharSequence> |
protected static class |
StringMaps.SynchronizedPrefixMap<S extends CharSequence> |
protected static class |
StringMaps.SynchronizedStringMap<S extends CharSequence> |
| Modifier and Type | Method and Description |
|---|---|
static <T extends CharSequence> |
synchronize(PrefixMap<T> prefixMap)
Returns a synchronized prefix map backed by the given prefix map.
|
static <T extends CharSequence> |
synchronize(StringMap<T> stringMap)
Returns a synchronized string map backed by the given string map.
|
static <T extends CharSequence> |
wrap(PrefixMap<T> prefixMap)
|
static <T extends CharSequence> |
wrap(StringMap<T> stringMap)
|
public static <T extends CharSequence> StringMap<T> synchronize(StringMap<T> stringMap)
stringMap - the string map to be wrapped in a synchronized map.public static <T extends CharSequence> PrefixMap<T> synchronize(PrefixMap<T> prefixMap)
prefixMap - the prefix map to be wrapped in a synchronized map.public static <T extends CharSequence> StringMap<T> wrap(StringMap<T> stringMap)
stringMap - a string map.StringMap view of stringMap.public static <T extends CharSequence> PrefixMap<T> wrap(PrefixMap<T> prefixMap)
PrefixMap view of a standard PrefixMap. Note that
the returned prefix map does not implement PrefixMap.prefixMap().prefixMap - a prefix map.PrefixMap view of prefixMap.