protected static BigInteger convertLongToUlong(long longVal){
  byte[] asBytes=new byte[8];
  asBytes[7]=(byte)(longVal & 0xff);
  asBytes[6]=(byte)(longVal >>> 8);
  asBytes[5]=(byte)(longVal >>> 16);
  asBytes[4]=(byte)(longVal >>> 24);
  asBytes[3]=(byte)(longVal >>> 32);
  asBytes[2]=(byte)(longVal >>> 40);
  asBytes[1]=(byte)(longVal >>> 48);
  asBytes[0]=(byte)(longVal >>> 56);
  return new BigInteger(1,asBytes);
}

protected static BigInteger convertLongToUlong ( long longVal ) { byte [ ] asBytes = new byte [ 8 ] ; asBytes [ 7 ] = ( byte ) ( longVal & 0xff ) ; asBytes [ 6 ] = ( byte ) ( longVal > > > 8 ) ; asBytes [ 5 ] = ( byte ) ( longVal > > > 16 ) ; asBytes [ 4 ] = ( byte ) ( longVal > > > 24 ) ; asBytes [ 3 ] = ( byte ) ( longVal > > > 32 ) ; asBytes [ 2 ] = ( byte ) ( longVal > > > 40 ) ; asBytes [ 1 ] = ( byte ) ( longVal > > > 48 ) ; asBytes [ 0 ] = ( byte ) ( longVal > > > 56 ) ; return new BigInteger ( 1 , asBytes ) ; }
converts the given value as a java long , to an ' unsigned ' long , using the java . math . biginteger class .
