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>, 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.PrefixMapWrapper<T extends CharSequence> extends StringMaps.StringMapWrapper<T> implements PrefixMap<T>
See Also:
  • Field Summary

    Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction

    defRetValue
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    it.unimi.dsi.fastutil.objects.Object2ObjectFunction<LongInterval,T>
    Returns a function mapping ranges of strings to common prefixes (optional operation).
    it.unimi.dsi.fastutil.objects.Object2ObjectFunction<CharSequence,LongInterval>
    Returns a function mapping prefixes to ranges of strings.

    Methods inherited from class it.unimi.dsi.big.util.StringMaps.StringMapWrapper

    containsKey, getLong, list, size64

    Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction

    defaultReturnValue, defaultReturnValue

    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

    Methods inherited from interface java.util.function.Function

    compose

    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

    Methods inherited from interface it.unimi.dsi.fastutil.Size64

    size

    Methods inherited from interface it.unimi.dsi.big.util.StringMap

    list, size, size64
  • Constructor Details

    • PrefixMapWrapper

      public PrefixMapWrapper(PrefixMap<T> prefixMap)
  • Method Details

    • rangeMap

      public it.unimi.dsi.fastutil.objects.Object2ObjectFunction<CharSequence,LongInterval> rangeMap()
      Description copied from interface: PrefixMap
      Returns a function mapping prefixes to ranges of strings.
      Specified by:
      rangeMap in interface PrefixMap<T extends CharSequence>
      Returns:
      a function mapping prefixes to ranges of strings.
    • prefixMap

      public it.unimi.dsi.fastutil.objects.Object2ObjectFunction<LongInterval,T> prefixMap()
      Description copied from interface: PrefixMap
      Returns a function mapping ranges of strings to common prefixes (optional operation).
      Specified by:
      prefixMap in interface PrefixMap<T extends CharSequence>
      Returns:
      a function mapping ranges of strings to common prefixes, or null if this map does not support prefixes.