Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## unity.util
Class HashFunc

    java.lang.Object
      unity.util.HashFunc

    public class HashFunc

extends java.lang.Object

Constructor Summary
`HashFunc()`

Method Summary
`static int` | `hash(int key, int tableSize)`
`static int` | `hash(java.lang.Object[] keys, int tableSize)`
`static int` | `hash(java.lang.String key, int tableSize)`
`static boolean` | `isPrime(int n)`
`static int` | `nextPrime(int n)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### HashFunc

    public HashFunc()

Method Detail

### hash

    public static int hash(java.lang.String key,
                           int tableSize)

### hash

    public static int hash(java.lang.Object[] keys,
                           int tableSize)

### hash

    public static int hash(int key,
                           int tableSize)

### nextPrime

    public static int nextPrime(int n)

### isPrime

    public static boolean isPrime(int n)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD