Package it.unimi.dsi.big.util
Class StringMaps.PrefixMapWrapper<T extends CharSequence>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<CharSequence>
it.unimi.dsi.big.util.StringMaps.StringMapWrapper<T>
it.unimi.dsi.big.util.StringMaps.PrefixMapWrapper<T>
- All Implemented Interfaces:
PrefixMap<T>,StringMap<T>,Function<CharSequence,Long>,Object2LongFunction<CharSequence>,Size64,Serializable,Function<CharSequence,Long>,ToLongFunction<CharSequence>
- Enclosing class:
- StringMaps
protected static class StringMaps.PrefixMapWrapper<T extends CharSequence> extends StringMaps.StringMapWrapper<T> implements PrefixMap<T>
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PrefixMapWrapper(PrefixMap<T> prefixMap) -
Method Summary
Modifier and Type Method Description Object2ObjectFunction<LongInterval,T>prefixMap()Returns a function mapping ranges of strings to common prefixes (optional operation).Object2ObjectFunction<CharSequence,LongInterval>rangeMap()Returns a function mapping prefixes to ranges of strings.Methods inherited from class it.unimi.dsi.big.util.StringMaps.StringMapWrapper
containsKey, getLong, list, size64Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
defaultReturnValue, defaultReturnValueMethods 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
-
Constructor Details
-
Method Details
-
rangeMap
Description copied from interface:PrefixMapReturns a function mapping prefixes to ranges of strings.- Specified by:
rangeMapin interfacePrefixMap<T extends CharSequence>- Returns:
- a function mapping prefixes to ranges of strings.
-
prefixMap
Description copied from interface:PrefixMapReturns a function mapping ranges of strings to common prefixes (optional operation).- Specified by:
prefixMapin interfacePrefixMap<T extends CharSequence>- Returns:
- a function mapping ranges of strings to common prefixes, or
nullif this map does not support prefixes.
-