Class StringMaps.SynchronizedPrefixMap<S extends java.lang.CharSequence>

  • All Implemented Interfaces:
    it.unimi.dsi.fastutil.Function<java.lang.CharSequence,​java.lang.Long>, it.unimi.dsi.fastutil.objects.Object2LongFunction<java.lang.CharSequence>, PrefixMap<S>, StringMap<S>, java.io.Serializable, java.util.function.Function<java.lang.CharSequence,​java.lang.Long>, java.util.function.ToLongFunction<java.lang.CharSequence>
    Enclosing class:
    StringMaps

    protected static class StringMaps.SynchronizedPrefixMap<S extends java.lang.CharSequence>
    extends StringMaps.SynchronizedStringMap<S>
    implements PrefixMap<S>, java.io.Serializable
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      it.unimi.dsi.fastutil.objects.Object2ObjectFunction<Interval,​S> prefixMap()
      Returns a function mapping ranges of strings to common prefixes (optional operation).
      it.unimi.dsi.fastutil.objects.Object2ObjectFunction<java.lang.CharSequence,​Interval> rangeMap()
      Returns a function mapping prefixes to ranges of strings.
      • 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 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
    • Field Detail

      • map

        protected final PrefixMap<S extends java.lang.CharSequence> map
      • prefixMap

        protected it.unimi.dsi.fastutil.objects.Object2ObjectFunction<Interval,​S extends java.lang.CharSequence> prefixMap
      • rangeMap

        protected it.unimi.dsi.fastutil.objects.Object2ObjectFunction<java.lang.CharSequence,​Interval> rangeMap
    • Constructor Detail

      • SynchronizedPrefixMap

        public SynchronizedPrefixMap​(PrefixMap<S> map)
    • Method Detail

      • prefixMap

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

        public it.unimi.dsi.fastutil.objects.Object2ObjectFunction<java.lang.CharSequence,​Interval> rangeMap()
        Description copied from interface: PrefixMap
        Returns a function mapping prefixes to ranges of strings.
        Specified by:
        rangeMap in interface PrefixMap<S extends java.lang.CharSequence>
        Returns:
        a function mapping prefixes to ranges of strings.