List of usage examples for java.math BigInteger hashCode
public int hashCode()
From source file:Main.java
public static void main(String[] args) { // assign values to bi1, bi2 BigInteger bi1 = new BigInteger("12345"); BigInteger bi2 = new BigInteger("987654321"); // assign the hashcode of bi1, bi2 to i1, i2 int i1 = bi1.hashCode(); int i2 = bi2.hashCode(); System.out.println(i1);//ww w .j a v a 2s .c o m System.out.println(i2); }
From source file:org.apache.pig.data.SchemaTuple.java
protected int hashCodePiece(int hash, BigInteger v, boolean isNull) { return isNull ? hash : 31 * hash + v.hashCode(); }