Here you can find the source of toLong(int value)
private static long toLong(int value)
//package com.java2s; //Licensed under the Apache License, Version 2.0 (the "License"); public class Main { static final long INT_MASK = 0xffffffffL; /**//from www .ja v a 2s .c om * Returns the value of the given {@code int} as a {@code long}, when treated as unsigned. */ private static long toLong(int value) { return value & INT_MASK; } }