FormatUtil { public static long getUnsignedInt(int x) { return x & 0x0000_0000_ffff_ffffL; } private  FormatUtil(); static String formatBytes(long bytes); static String formatBytesDecimal(long bytes); static String formatHertz(long hertz); static String formatValue(long value, String unit); static String formatElapsedSecs(long secs); static float round(float d, int decimalPlace); static long getUnsignedInt(int x); static String toUnsignedString(int i); static String toUnsignedString(long l); static String formatError(int errorCode); static final String HEX_ERROR; }
@Test public void testGetUnsignedInt() { assertEquals(4294967295L, FormatUtil.getUnsignedInt(-1)); }