it.unimi.dsi.big.util
Class StringMaps.StringMapWrapper<T extends CharSequence>

java.lang.Object
  extended by it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<CharSequence>
      extended by it.unimi.dsi.big.util.StringMaps.StringMapWrapper<T>
All Implemented Interfaces:
StringMap<T>, Function<CharSequence,Long>, Object2LongFunction<CharSequence>, Size64, Serializable
Direct Known Subclasses:
StringMaps.PrefixMapWrapper
Enclosing class:
StringMaps

protected static class StringMaps.StringMapWrapper<T extends CharSequence>
extends AbstractObject2LongFunction<CharSequence>
implements StringMap<T>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
defRetValue
 
Constructor Summary
StringMaps.StringMapWrapper(StringMap<T> stringMap)
           
 
Method Summary
 boolean containsKey(Object key)
           
 long getLong(Object key)
           
 ObjectBigList<? extends T> list()
          Returns a list view of the domain of this string map (optional operation).
 int size()
           
 long size64()
           
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
clear, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLong
 
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
defaultReturnValue, defaultReturnValue, put, removeLong
 
Methods inherited from interface it.unimi.dsi.fastutil.Function
clear, get, put, remove
 

Constructor Detail

StringMaps.StringMapWrapper

public StringMaps.StringMapWrapper(StringMap<T> stringMap)
Method Detail

getLong

public long getLong(Object key)
Specified by:
getLong in interface Object2LongFunction<CharSequence>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Function<CharSequence,Long>

size

public int size()
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 T> 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<T extends CharSequence>
Returns:
a list view of the domain of this string map, or null if this map does not support this operation.