it.unimi.dsi.big.util
Class StringMaps.StringMapWrapper<T extends CharSequence>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<CharSequence>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringMaps.StringMapWrapper
public StringMaps.StringMapWrapper(StringMap<T> stringMap)
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.