Package 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,Function<CharSequence,Long>,ToLongFunction<CharSequence>
- 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
-
Constructor Summary
Constructors Constructor Description StringMapWrapper(StringMap<T> stringMap) -
Method Summary
Modifier and Type Method Description booleancontainsKey(Object key)longgetLong(Object key)ObjectBigList<? extends T>list()Returns a list view of the domain of this string map (optional operation).longsize64()Returns the intended number of keys in this function, or -1 if no such number exists.Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
defaultReturnValue, defaultReturnValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.objects.Object2LongFunction
applyAsLong, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLong
-
Constructor Details
-
Method Details
-
getLong
- Specified by:
getLongin interfaceObject2LongFunction<T extends CharSequence>
-
containsKey
- Specified by:
containsKeyin interfaceFunction<CharSequence,Long>
-
size64
public long size64()Description copied from interface:StringMapReturns the intended number of keys in this function, or -1 if no such number exists.Most function implementations will have some knowledge of the intended number of keys in their domain. In some cases, however, this might not be possible. This default implementation, in particular, returns -1.
-
list
Description copied from interface:StringMapReturns 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:
listin interfaceStringMap<T extends CharSequence>- Returns:
- a list view of the domain of this string map, or
nullif this map does not support this operation.
-