@Test public void testMakeInt() throws Exception { for (short x = Short.MIN_VALUE; x < Short.MAX_VALUE; x++) { for (short y = Short.MIN_VALUE; y < Short.MAX_VALUE; y++) { short[] result = IntegerTools.getShorts(IntegerTools.makeInt(x,y)); assert result[0] == x; assert result[1] == y; } } }
public static int makeInt(short x, short y) { return (x << 16) | (y & 0xFFFF); }
IntegerTools { public static int makeInt(short x, short y) { return (x << 16) | (y & 0xFFFF); } }
IntegerTools { public static int makeInt(short x, short y) { return (x << 16) | (y & 0xFFFF); } private  IntegerTools(); }
IntegerTools { public static int makeInt(short x, short y) { return (x << 16) | (y & 0xFFFF); } private  IntegerTools(); static int ifloordiv2(int n, int d); static int ifloormod2(int n, int d); static int ifloordiv(int n, int d); static int ifloormod(int n, int d); static int sign(int i); static int makeInt(short x, short y); static int makeInt(int x, int y); static short[] getShorts(int val); static int[] findFactors(int input); }
IntegerTools { public static int makeInt(short x, short y) { return (x << 16) | (y & 0xFFFF); } private  IntegerTools(); static int ifloordiv2(int n, int d); static int ifloormod2(int n, int d); static int ifloordiv(int n, int d); static int ifloormod(int n, int d); static int sign(int i); static int makeInt(short x, short y); static int makeInt(int x, int y); static short[] getShorts(int val); static int[] findFactors(int input);  }