Package it.unimi.dsi.big.util
Class StringMaps.StringMapWrapper<T extends java.lang.CharSequence>
- java.lang.Object
-
- it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<java.lang.CharSequence>
-
- it.unimi.dsi.big.util.StringMaps.StringMapWrapper<T>
-
- All Implemented Interfaces:
StringMap<T>
,it.unimi.dsi.fastutil.Function<java.lang.CharSequence,java.lang.Long>
,it.unimi.dsi.fastutil.objects.Object2LongFunction<java.lang.CharSequence>
,it.unimi.dsi.fastutil.Size64
,java.io.Serializable
,java.util.function.Function<java.lang.CharSequence,java.lang.Long>
,java.util.function.ToLongFunction<java.lang.CharSequence>
- Direct Known Subclasses:
StringMaps.PrefixMapWrapper
- Enclosing class:
- StringMaps
protected static class StringMaps.StringMapWrapper<T extends java.lang.CharSequence> extends it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<java.lang.CharSequence> implements StringMap<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringMapWrapper(StringMap<T> stringMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(java.lang.Object key)
long
getLong(java.lang.Object key)
it.unimi.dsi.fastutil.objects.ObjectBigList<? extends T>
list()
Returns a list view of the domain of this string map (optional operation).long
size64()
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, defaultReturnValue
-
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
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, defaultReturnValue, defaultReturnValue, get, getOrDefault, getOrDefault, put, put, remove, removeLong
-
-
-
-
Method Detail
-
getLong
public long getLong(java.lang.Object key)
- Specified by:
getLong
in interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<T extends java.lang.CharSequence>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfaceit.unimi.dsi.fastutil.Function<java.lang.CharSequence,java.lang.Long>
-
size64
public long size64()
Description copied from interface:StringMap
Returns 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.
-
-