Class StringMaps.SynchronizedStringMap<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>, StringMap<S>, java.io.Serializable, java.util.function.Function<java.lang.CharSequence,​java.lang.Long>, java.util.function.ToLongFunction<java.lang.CharSequence>
    Direct Known Subclasses:
    StringMaps.SynchronizedPrefixMap
    Enclosing class:
    StringMaps

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

      Fields 
      Modifier and Type Field Description
      protected it.unimi.dsi.fastutil.objects.ObjectList<? extends S> list  
      protected StringMap<S> stringMap  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(java.lang.Object key)  
      long defaultReturnValue()  
      void defaultReturnValue​(long rv)  
      java.lang.Long get​(java.lang.Object key)  
      long getLong​(java.lang.Object s)  
      it.unimi.dsi.fastutil.objects.ObjectList<? extends S> list()
      Returns a list view of the domain of this string map (optional operation).
      long put​(java.lang.CharSequence key, long value)  
      java.lang.Long put​(java.lang.CharSequence key, java.lang.Long value)  
      java.lang.Long remove​(java.lang.Object key)  
      long removeLong​(java.lang.Object key)  
      int size()  
      • 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
      • 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, getOrDefault, getOrDefault
    • Field Detail

      • stringMap

        protected final StringMap<S extends java.lang.CharSequence> stringMap
      • list

        protected it.unimi.dsi.fastutil.objects.ObjectList<? extends S extends java.lang.CharSequence> list
    • Constructor Detail

      • SynchronizedStringMap

        public SynchronizedStringMap​(StringMap<S> stringMap)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface it.unimi.dsi.fastutil.Function<java.lang.CharSequence,​java.lang.Long>
      • list

        public it.unimi.dsi.fastutil.objects.ObjectList<? extends S> list()
        Description copied from interface: StringMap
        Returns a list view of the domain of this string map (optional operation).

        Note that the list view acts as an inverse of the mapping implemented by this map.

        Specified by:
        list in interface StringMap<S extends java.lang.CharSequence>
        Returns:
        a list view of the domain of this string map, or null if this map does not support this operation.
      • getLong

        public long getLong​(java.lang.Object s)
        Specified by:
        getLong in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
      • get

        public java.lang.Long get​(java.lang.Object key)
        Specified by:
        get in interface it.unimi.dsi.fastutil.Function<java.lang.CharSequence,​java.lang.Long>
        Specified by:
        get in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
      • put

        public long put​(java.lang.CharSequence key,
                        long value)
        Specified by:
        put in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
      • put

        public java.lang.Long put​(java.lang.CharSequence key,
                                  java.lang.Long value)
        Specified by:
        put in interface it.unimi.dsi.fastutil.Function<java.lang.CharSequence,​java.lang.Long>
        Specified by:
        put in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
      • remove

        public java.lang.Long remove​(java.lang.Object key)
        Specified by:
        remove in interface it.unimi.dsi.fastutil.Function<java.lang.CharSequence,​java.lang.Long>
        Specified by:
        remove in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
      • removeLong

        public long removeLong​(java.lang.Object key)
        Specified by:
        removeLong in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
      • clear

        public void clear()
        Specified by:
        clear in interface it.unimi.dsi.fastutil.Function<java.lang.CharSequence,​java.lang.Long>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface it.unimi.dsi.fastutil.Function<java.lang.CharSequence,​java.lang.Long>
      • defaultReturnValue

        public long defaultReturnValue()
        Specified by:
        defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
      • defaultReturnValue

        public void defaultReturnValue​(long rv)
        Specified by:
        defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>