@Test public void testMinOfSigned() { assertThat(minOfSigned(1), is(BigInteger.valueOf(Byte.MIN_VALUE))); assertThat(minOfSigned(2), is(BigInteger.valueOf(Short.MIN_VALUE))); assertThat(minOfSigned(4), is(BigInteger.valueOf(Integer.MIN_VALUE))); assertThat(minOfSigned(8), is(BigInteger.valueOf(Long.MIN_VALUE))); assertThat(minOfSigned(16), is(new BigInteger("-80000000000000000000000000000000", 16))); }
public static BigInteger minOfSigned(int size) { return new BigInteger("-80" + StringUtils.repeat("00", size - 1), 16); }
BigIntegerUtils { public static BigInteger minOfSigned(int size) { return new BigInteger("-80" + StringUtils.repeat("00", size - 1), 16); } }
BigIntegerUtils { public static BigInteger minOfSigned(int size) { return new BigInteger("-80" + StringUtils.repeat("00", size - 1), 16); } private  BigIntegerUtils(); }
BigIntegerUtils { public static BigInteger minOfSigned(int size) { return new BigInteger("-80" + StringUtils.repeat("00", size - 1), 16); } private  BigIntegerUtils(); static byte[] toLittleEndian(BigInteger integer, int sizeInBytes); static BigInteger asSignedLittleEndian(byte[] bytes); static BigInteger asUnsignedLittleEndian(byte[] bytes); static BigInteger minOfSigned(int size); static BigInteger maxOfSigned(int size); static BigInteger maxOfUnsigned(int size); static String toHexString(BigInteger integer, int size); }
BigIntegerUtils { public static BigInteger minOfSigned(int size) { return new BigInteger("-80" + StringUtils.repeat("00", size - 1), 16); } private  BigIntegerUtils(); static byte[] toLittleEndian(BigInteger integer, int sizeInBytes); static BigInteger asSignedLittleEndian(byte[] bytes); static BigInteger asUnsignedLittleEndian(byte[] bytes); static BigInteger minOfSigned(int size); static BigInteger maxOfSigned(int size); static BigInteger maxOfUnsigned(int size); static String toHexString(BigInteger integer, int size);  }