it.unimi.dsi.big.util
Class StringMaps.SynchronizedStringMap<S extends CharSequence>

java.lang.Object
  extended by 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

Field Summary
protected  ObjectBigList<? extends S> list
           
protected  StringMap<S> stringMap
           
 
Constructor Summary
StringMaps.SynchronizedStringMap(StringMap<S> stringMap)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 long defaultReturnValue()
           
 void defaultReturnValue(long rv)
           
 Long get(Object key)
           
 long getLong(Object s)
           
 ObjectBigList<? extends S> list()
          Returns a list view of the domain of this string map (optional operation).
 long put(CharSequence key, long value)
           
 Long put(CharSequence key, Long value)
           
 Long remove(Object key)
           
 long removeLong(Object key)
           
 int size()
          Deprecated. 
 long size64()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringMap

protected final StringMap<S extends CharSequence> stringMap

list

protected ObjectBigList<? extends S extends CharSequence> list
Constructor Detail

StringMaps.SynchronizedStringMap

public StringMaps.SynchronizedStringMap(StringMap<S> stringMap)
Method Detail

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>