Package it.unimi.dsi.util
Class StringMaps.SynchronizedPrefixMap<S extends CharSequence>
java.lang.Object
it.unimi.dsi.util.StringMaps.SynchronizedStringMap<S>
it.unimi.dsi.util.StringMaps.SynchronizedPrefixMap<S>
- All Implemented Interfaces:
Function<CharSequence,
,Long> Object2LongFunction<CharSequence>
,PrefixMap<S>
,StringMap<S>
,Serializable
,Function<CharSequence,
,Long> ToLongFunction<CharSequence>
- Enclosing class:
- StringMaps
protected static class StringMaps.SynchronizedPrefixMap<S extends CharSequence>
extends StringMaps.SynchronizedStringMap<S>
implements PrefixMap<S>, Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Object2ObjectFunction<Interval,
S> protected Object2ObjectFunction<CharSequence,
Interval> Fields inherited from class it.unimi.dsi.util.StringMaps.SynchronizedStringMap
list, stringMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a function mapping ranges of strings to common prefixes (optional operation).rangeMap()
Returns a function mapping prefixes to ranges of strings.Methods inherited from class it.unimi.dsi.util.StringMaps.SynchronizedStringMap
clear, containsKey, defaultReturnValue, defaultReturnValue, get, getLong, list, put, put, remove, removeLong, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.unimi.dsi.fastutil.Function
apply, clear, containsKey, size
Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2LongFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, defaultReturnValue, defaultReturnValue, get, getLong, getOrDefault, getOrDefault, put, put, remove, removeLong
-
Field Details
-
map
-
prefixMap
-
rangeMap
-
-
Constructor Details
-
SynchronizedPrefixMap
-
-
Method Details
-
prefixMap
Description copied from interface:PrefixMap
Returns a function mapping ranges of strings to common prefixes (optional operation).- Specified by:
prefixMap
in interfacePrefixMap<S extends CharSequence>
- Returns:
- a function mapping ranges of strings to common prefixes, or
null
if this map does not support prefixes.
-
rangeMap
Description copied from interface:PrefixMap
Returns a function mapping prefixes to ranges of strings.- Specified by:
rangeMap
in interfacePrefixMap<S extends CharSequence>
- Returns:
- a function mapping prefixes to ranges of strings.
-