Class StringMaps
java.lang.Object
it.unimi.dsi.big.util.StringMaps
A class providing static methods and objects that do useful things with string maps
and prefix maps.
- Since:
- 2.0
- Author:
- Sebastiano Vigna
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classStringMaps.PrefixMapWrapper<T extends CharSequence>protected static classStringMaps.StringMapWrapper<T extends CharSequence>protected static classprotected static class -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends CharSequence>
PrefixMap<T> synchronize(PrefixMap<T> prefixMap) Returns a synchronized prefix map backed by the given prefix map.static <T extends CharSequence>
StringMap<T> synchronize(StringMap<T> stringMap) Returns a synchronized string map backed by the given string map.static <T extends CharSequence>
PrefixMap<T> static <T extends CharSequence>
StringMap<T>
-
Method Details
-
synchronize
Returns a synchronized string map backed by the given string map.- Parameters:
stringMap- the string map to be wrapped in a synchronized map.- Returns:
- a synchronized view of the specified string map.
-
synchronize
Returns a synchronized prefix map backed by the given prefix map.- Parameters:
prefixMap- the prefix map to be wrapped in a synchronized map.- Returns:
- a synchronized view of the specified prefix map.
-
wrap
-
wrap
Returns an immutable (big)PrefixMapview of a standardPrefixMap. Note that the returned prefix map does not implementPrefixMap.prefixMap().- Parameters:
prefixMap- a prefix map.- Returns:
- a
PrefixMapview ofprefixMap.
-