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:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected PrefixMap<S>mapprotected Object2ObjectFunction<Interval,S>prefixMapprotected Object2ObjectFunction<CharSequence,Interval>rangeMap -
Constructor Summary
Constructors Constructor Description SynchronizedPrefixMap(PrefixMap<S> map) -
Method Summary
Modifier and Type Method Description Object2ObjectFunction<Interval,S>prefixMap()Returns a function mapping ranges of strings to common prefixes (optional operation).Object2ObjectFunction<CharSequence,Interval>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, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.objects.Object2LongFunction
applyAsLong, defaultReturnValue, defaultReturnValue, get, getLong, put, put, remove, removeLong
-
Field Details
-
Constructor Details
-
Method Details
-
prefixMap
Description copied from interface:PrefixMapReturns a function mapping ranges of strings to common prefixes (optional operation).- Specified by:
prefixMapin interfacePrefixMap<S extends CharSequence>- Returns:
- a function mapping ranges of strings to common prefixes, or
nullif this map does not support prefixes.
-
rangeMap
Description copied from interface:PrefixMapReturns a function mapping prefixes to ranges of strings.- Specified by:
rangeMapin interfacePrefixMap<S extends CharSequence>- Returns:
- a function mapping prefixes to ranges of strings.
-