Here you can find the source of toLong(int x, int z)
Parameter | Description |
---|---|
x | value of key |
z | value of key |
public static long toLong(int x, int z)
//package com.java2s; /*/*ww w .ja v a 2 s. co m*/ * Copyright (c) 2015, GoMint, BlackyPaw and geNAZt * * This code is licensed under the BSD license found in the * LICENSE file in the root directory of this source tree. */ public class Main { /** * Shift two int's together to form a compund key * * @param x value of key * @param z value of key * @return long compund of the two int's */ public static long toLong(int x, int z) { return ((long) x << 32) + z - Integer.MIN_VALUE; } }