Class AbstractHashFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<K>
it.unimi.dsi.sux4j.mph.AbstractHashFunction<K>
All Implemented Interfaces:
Function<K,Long>, Object2LongFunction<K>, Size64, Serializable, Function<K,Long>, ToLongFunction<K>
Direct Known Subclasses:
CHDMinimalPerfectHashFunction, GOVMinimalPerfectHashFunction, HollowTrieDistributorMonotoneMinimalPerfectHashFunction, HollowTrieMonotoneMinimalPerfectHashFunction, LcpMonotoneMinimalPerfectHashFunction, MinimalPerfectHashFunction, PaCoTrieDistributorMonotoneMinimalPerfectHashFunction, TwoStepsGOV3Function, TwoStepsLcpMonotoneMinimalPerfectHashFunction, TwoStepsMWHCFunction, VLLcpMonotoneMinimalPerfectHashFunction, VLPaCoTrieDistributorMonotoneMinimalPerfectHashFunction, ZFastTrieDistributorMonotoneMinimalPerfectHashFunction

public abstract class AbstractHashFunction<K> extends AbstractObject2LongFunction<K> implements Size64
A very minimal abstract hash implementation. It extends AbstractObject2LongFunction, by Size64. Moreover, it provides a deprecated size() method that returns -1 if size64() is -1 or greater than Integer.MAX_VALUE, a size64() returning -1 (that you are invited to override), and a containsKey(Object) implementation that returns true.
See Also:
  • Constructor Details

    • AbstractHashFunction

      public AbstractHashFunction()
  • Method Details