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
- Since:
- 2.0
- Author:
- Sebastiano Vigna
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) longvoiddefaultReturnValue(long rv) longit.unimi.dsi.fastutil.objects.ObjectBigList<? extends S> list()Returns a list view of the domain of this string map (optional operation).longput(CharSequence key, long value) put(CharSequence key, Long value) longremoveLong(Object key) longsize64()Returns the intended number of keys in this function, or -1 if no such number exists.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods 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 Details
-
stringMap
-
list
-
-
Constructor Details
-
SynchronizedStringMap
-
-
Method Details
-
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.
- Specified by:
size64in interfaceit.unimi.dsi.fastutil.Size64- Specified by:
size64in interfaceStringMap<S extends CharSequence>- Returns:
- the intended number of keys in this function, or -1 if that number is not available.
-
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.
- Specified by:
listin interfaceStringMap<S extends CharSequence>- Returns:
- a list view of the domain of this string map, or
nullif this map does not support this operation.
-
getLong
- Specified by:
getLongin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
-
get
- Specified by:
getin interfaceit.unimi.dsi.fastutil.Function<CharSequence, Long>- Specified by:
getin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.Function<CharSequence, Long>- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
-
remove
- Specified by:
removein interfaceit.unimi.dsi.fastutil.Function<CharSequence, Long>- Specified by:
removein interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
-
removeLong
- Specified by:
removeLongin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
-
clear
public void clear()- Specified by:
clearin interfaceit.unimi.dsi.fastutil.Function<CharSequence, Long>
-
containsKey
- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<CharSequence, Long>
-
defaultReturnValue
public long defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
-
defaultReturnValue
public void defaultReturnValue(long rv) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<S extends CharSequence>
-