|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.big.util.StringMaps
public class StringMaps
A class providing static methods and objects that do useful things with string maps and prefix maps.
StringMaps.SynchronizedStringMap
,
PrefixMap
Nested Class Summary | |
---|---|
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>
|
Method Summary | ||
---|---|---|
static
|
synchronize(PrefixMap<T> prefixMap)
Returns a synchronized prefix map backed by the given prefix map. |
|
static
|
synchronize(StringMap<T> stringMap)
Returns a synchronized string map backed by the given string map. |
|
static
|
wrap(PrefixMap<T> prefixMap)
Returns a (big) PrefixMap view of a standard PrefixMap . |
|
static
|
wrap(StringMap<T> stringMap)
Returns a (big) StringMaps.SynchronizedStringMap view of a standard StringMap . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
StringMaps.SynchronizedStringMap
view of a standard StringMap
.
stringMap
- a string map.
StringMaps.SynchronizedStringMap
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
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |