Java Integer Hash intHash(int key)

Here you can find the source of intHash(int key)

Description

int Hash

License

Apache License

Declaration

public static int intHash(int key) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static int intHash(int key) {
        key += ~(key << 15);//from   ww  w .jav  a2s. c o m
        key ^= (key >>> 10);
        key += (key << 3);
        key ^= (key >>> 6);
        key += ~(key << 11);
        key ^= (key >>> 16);
        return key;
    }
}

Related

  1. intHash(final long a)
  2. intHash(int i)
  3. intHash(int input)
  4. intHash(int number, int max)
  5. intHash(long a)
  6. intHashCode(final int value)
  7. intHashCode(int i)