Here you can find the source of toUnsignedLong(int x)
static long toUnsignedLong(int x)
//package com.java2s; //License from project: Open Source License public class Main { static long toUnsignedLong(int x) { return ((long) x) & 0xffffffffL; }//from ww w. j av a 2 s .co m }