Package it.unimi.dsi.big.util
Class StringMaps.SynchronizedStringMap<S extends java.lang.CharSequence>
- java.lang.Object
-
- it.unimi.dsi.big.util.StringMaps.SynchronizedStringMap<S>
-
- All Implemented Interfaces:
StringMap<S>,it.unimi.dsi.fastutil.Function<java.lang.CharSequence,java.lang.Long>,it.unimi.dsi.fastutil.objects.Object2LongFunction<java.lang.CharSequence>,it.unimi.dsi.fastutil.Size64,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
-
-
Constructor Summary
Constructors Constructor Description SynchronizedStringMap(StringMap<S> stringMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)longdefaultReturnValue()voiddefaultReturnValue(long rv)java.lang.Longget(java.lang.Object key)longgetLong(java.lang.Object s)it.unimi.dsi.fastutil.objects.ObjectBigList<? extends S>list()Returns a list view of the domain of this string map (optional operation).longput(java.lang.CharSequence key, long value)java.lang.Longput(java.lang.CharSequence key, java.lang.Long value)java.lang.Longremove(java.lang.Object key)longremoveLong(java.lang.Object key)longsize64()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.objects.Object2LongFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, getOrDefault, getOrDefault
-
-
-
-
Method Detail
-
size64
public long size64()
Description copied from interface:StringMapReturns 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.
-
list
public it.unimi.dsi.fastutil.objects.ObjectBigList<? extends S> list()
Description copied from interface:StringMapReturns 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.
-
getLong
public long getLong(java.lang.Object s)
- Specified by:
getLongin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
-
get
public java.lang.Long get(java.lang.Object key)
- Specified by:
getin interfaceit.unimi.dsi.fastutil.Function<java.lang.CharSequence,java.lang.Long>- Specified by:
getin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
-
put
public long put(java.lang.CharSequence key, long value)- Specified by:
putin interfaceit.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:
putin interfaceit.unimi.dsi.fastutil.Function<java.lang.CharSequence,java.lang.Long>- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
-
remove
public java.lang.Long remove(java.lang.Object key)
- Specified by:
removein interfaceit.unimi.dsi.fastutil.Function<java.lang.CharSequence,java.lang.Long>- Specified by:
removein interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
-
removeLong
public long removeLong(java.lang.Object key)
- Specified by:
removeLongin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
-
clear
public void clear()
- Specified by:
clearin interfaceit.unimi.dsi.fastutil.Function<java.lang.CharSequence,java.lang.Long>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<java.lang.CharSequence,java.lang.Long>
-
defaultReturnValue
public long defaultReturnValue()
- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
-
defaultReturnValue
public void defaultReturnValue(long rv)
- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends java.lang.CharSequence>
-
-