Class HashUtils

java.lang.Object
hash.exercise.HashUtils

public class HashUtils extends Object
Author:
__STUDENT_NAME__, Dennis Cosgrove
  • Constructor Details

    • HashUtils

      public HashUtils()
  • Method Details

    • hashCodeOf

      public static <K> int hashCodeOf(K key, ToIntFunction<K> hashFunction)
    • arrayIndexForKey

      public static <K> int arrayIndexForKey(K key, int arrayLength, ToIntFunction<K> hashFunction)
    • itemInArrayForKey

      public static <K,E> E itemInArrayForKey(K key, E[] array, ToIntFunction<K> hashFunction)