Class StringMaps.SynchronizedPrefixMap<S extends CharSequence>
java.lang.Object
it.unimi.dsi.big.util.StringMaps.SynchronizedStringMap<S>
it.unimi.dsi.big.util.StringMaps.SynchronizedPrefixMap<S>
- All Implemented Interfaces:
PrefixMap<S>, StringMap<S>, it.unimi.dsi.fastutil.Function<CharSequence, Long>, it.unimi.dsi.fastutil.objects.Object2LongFunction<CharSequence>, it.unimi.dsi.fastutil.Size64, 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
- Since:
- 2.0
- Author:
- Sebastiano Vigna
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected it.unimi.dsi.fastutil.objects.Object2ObjectFunction<LongInterval, S> protected it.unimi.dsi.fastutil.objects.Object2ObjectFunction<CharSequence, LongInterval> Fields inherited from class StringMaps.SynchronizedStringMap
list, stringMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.Object2ObjectFunction<LongInterval, S> Returns a function mapping ranges of strings to common prefixes (optional operation).it.unimi.dsi.fastutil.objects.Object2ObjectFunction<CharSequence, LongInterval> rangeMap()Returns a function mapping prefixes to ranges of strings.Methods inherited from class StringMaps.SynchronizedStringMap
clear, containsKey, defaultReturnValue, defaultReturnValue, get, getLong, list, put, put, remove, removeLong, size64Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
apply, clear, containsKeyMethods 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, removeLongMethods inherited from interface it.unimi.dsi.fastutil.Size64
size
-
Field Details
-
map
-
prefixMap
protected it.unimi.dsi.fastutil.objects.Object2ObjectFunction<LongInterval, S extends CharSequence> prefixMap -
rangeMap
-
-
Constructor Details
-
SynchronizedPrefixMap
-
-
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.
-