it.unimi.dsi.big.util
Class StringMaps.SynchronizedStringMap<S extends CharSequence>
java.lang.Object
it.unimi.dsi.big.util.StringMaps.SynchronizedStringMap<S>
- All Implemented Interfaces:
- StringMap<S>, Function<CharSequence,Long>, Object2LongFunction<CharSequence>, Size64, Serializable
- Direct Known Subclasses:
- StringMaps.SynchronizedPrefixMap
- Enclosing class:
- StringMaps
protected static class StringMaps.SynchronizedStringMap<S extends CharSequence>
- extends Object
- implements StringMap<S>, Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stringMap
protected final StringMap<S extends CharSequence> stringMap
list
protected ObjectBigList<? extends S extends CharSequence> list
StringMaps.SynchronizedStringMap
public StringMaps.SynchronizedStringMap(StringMap<S> stringMap)
size
@Deprecated
public int size()
- Deprecated.
- Specified by:
size
in interface Function<CharSequence,Long>
- Specified by:
size
in interface Size64
size64
public long size64()
- Specified by:
size64
in interface Size64
list
public 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 Object2LongFunction<CharSequence>
get
public Long get(Object key)
- Specified by:
get
in interface Function<CharSequence,Long>
put
public long put(CharSequence key,
long value)
- Specified by:
put
in interface Object2LongFunction<CharSequence>
put
public Long put(CharSequence key,
Long value)
- Specified by:
put
in interface Function<CharSequence,Long>
remove
public Long remove(Object key)
- Specified by:
remove
in interface Function<CharSequence,Long>
removeLong
public long removeLong(Object key)
- Specified by:
removeLong
in interface Object2LongFunction<CharSequence>
clear
public void clear()
- Specified by:
clear
in interface Function<CharSequence,Long>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Function<CharSequence,Long>
defaultReturnValue
public long defaultReturnValue()
- Specified by:
defaultReturnValue
in interface Object2LongFunction<CharSequence>
defaultReturnValue
public void defaultReturnValue(long rv)
- Specified by:
defaultReturnValue
in interface Object2LongFunction<CharSequence>