Class StringMaps.SynchronizedStringMap<S extends CharSequence>

java.lang.Object
it.unimi.dsi.big.util.StringMaps.SynchronizedStringMap<S>
All Implemented Interfaces:
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>
Direct Known Subclasses:
StringMaps.SynchronizedPrefixMap
Enclosing class:
StringMaps

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

    Fields
    Modifier and Type
    Field
    Description
    protected it.unimi.dsi.fastutil.objects.ObjectBigList<? extends S>
     
    protected final StringMap<S>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     
    long
     
    void
     
    get(Object key)
     
    long
     
    it.unimi.dsi.fastutil.objects.ObjectBigList<? extends S>
    Returns a list view of the domain of this string map (optional operation).
    long
    put(CharSequence key, long value)
     
    put(CharSequence key, Long value)
     
     
    long
     
    long
    Returns the intended number of keys in this function, or -1 if no such number exists.

    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

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

    size
  • Field Details

  • Constructor Details

    • SynchronizedStringMap

      public SynchronizedStringMap(StringMap<S> stringMap)
  • Method Details

    • size64

      public long size64()
      Description copied from interface: StringMap
      Returns the intended number of keys in this function, or -1 if no such number exists.

      Most function implementations will have some knowledge of the intended number of keys in their domain. In some cases, however, this might not be possible. This default implementation, in particular, returns -1.

      Specified by:
      size64 in interface it.unimi.dsi.fastutil.Size64
      Specified by:
      size64 in interface StringMap<S extends CharSequence>
      Returns:
      the intended number of keys in this function, or -1 if that number is not available.
    • list

      public it.unimi.dsi.fastutil.objects.ObjectBigList<? 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 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(Object s)
      Specified by:
      getLong in interface it.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
    • get

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

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

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

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

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

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

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

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

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