Class XHashing


  • public final class XHashing
    extends Object
    Utility methods related to hashing.
    • Constructor Detail

      • XHashing

        public XHashing()
    • Method Detail

      • hashEqualityIdentity

        public static final <E> HashEqualator<E> hashEqualityIdentity()
      • hashEqualityValue

        public static final <E> HashEqualator<E> hashEqualityValue()
      • keyValueHashEqualityKeyIdentity

        public static final <KV extends KeyValue<?,​?>> HashEqualator<KV> keyValueHashEqualityKeyIdentity()
      • calculateHashLength

        public static final int calculateHashLength​(long desiredCapacity,
                                                    float hashDensity)
      • padHashLength

        public static final int padHashLength​(long desiredHashLength)
      • isValidHashDensity

        public static final boolean isValidHashDensity​(float hashDensity)
      • validateHashDensity

        public static final float validateHashDensity​(float hashDensity)
      • deriveHashEquality

        public static final <E> HashEqualator<E> deriveHashEquality​(Class<E> type)