Package it.unimi.dsi.sux4j.mph
Class AbstractHashFunction<K>
- java.lang.Object
-
- it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<K>
-
- it.unimi.dsi.sux4j.mph.AbstractHashFunction<K>
-
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,java.lang.Long>,it.unimi.dsi.fastutil.objects.Object2LongFunction<K>,it.unimi.dsi.fastutil.Size64,java.io.Serializable,java.util.function.Function<K,java.lang.Long>,java.util.function.ToLongFunction<K>
- Direct Known Subclasses:
CHDMinimalPerfectHashFunction,GOVMinimalPerfectHashFunction,GOVMinimalPerfectHashFunction128,HollowTrieDistributorMonotoneMinimalPerfectHashFunction,HollowTrieMonotoneMinimalPerfectHashFunction,LcpMonotoneMinimalPerfectHashFunction,MinimalPerfectHashFunction,PaCoTrieDistributorMonotoneMinimalPerfectHashFunction,TwoStepsGOV3Function,TwoStepsLcpMonotoneMinimalPerfectHashFunction,TwoStepsMWHCFunction,VLLcpMonotoneMinimalPerfectHashFunction,VLPaCoTrieDistributorMonotoneMinimalPerfectHashFunction,ZFastTrieDistributorMonotoneMinimalPerfectHashFunction
public abstract class AbstractHashFunction<K> extends it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<K> implements it.unimi.dsi.fastutil.Size64A very minimal abstract hash implementation. It extendsAbstractObject2LongFunction, bySize64. Moreover, it provides a deprecatedsize()method that returns -1 ifsize64()is -1 or greater thanInteger.MAX_VALUE, asize64()returning -1 (that you are invited to override), and acontainsKey(Object)implementation that returns true.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractHashFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsKey(java.lang.Object key)intsize()Deprecated.longsize64()-
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, get, getLong, getOrDefault, getOrDefault, put, put, remove, removeLong
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Long>
-
size
@Deprecated public int size()
Deprecated.- Specified by:
sizein interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Long>- Specified by:
sizein interfaceit.unimi.dsi.fastutil.Size64
-
size64
public long size64()
- Specified by:
size64in interfaceit.unimi.dsi.fastutil.Size64
-
-