Java Hash Calculate hashLong(long id)

Here you can find the source of hashLong(long id)

Description

hash Long

License

Open Source License

Declaration

public static int hashLong(long id) 

Method Source Code

//package com.java2s;

public class Main {
    public static int hashLong(long id) {
        return (int) (id ^ id >>> 32);
    }/*from  w  ww.  j a v  a  2 s.  c o m*/
}

Related

  1. hashIntArray(int seed, int[] data, int offset, int len)
  2. hashIt(Object o)
  3. hashJava32(byte[] byteList)
  4. hashJava64(byte[] byteList)
  5. hashJenkins(int init, Object... vals)
  6. hashLong(long l)
  7. hashMapCapacity(final int nElements)
  8. hashMore(final int hash, final int more)
  9. hashName(CharSequence name)