it.unimi.dsi.util
Class StringMaps.SynchronizedStringMap<S extends CharSequence>
java.lang.Object
it.unimi.dsi.util.StringMaps.SynchronizedStringMap<S>
- All Implemented Interfaces:
- Function<CharSequence,Long>, Object2LongFunction<CharSequence>, StringMap<S>, 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 ObjectList<? extends S extends CharSequence> list
StringMaps.SynchronizedStringMap
public StringMaps.SynchronizedStringMap(StringMap<S> stringMap)
size
public int size()
- Specified by:
size
in interface Function<CharSequence,Long>
list
public 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 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>