Code example for BigInteger

Methods: equals

0
    @Override 
	public boolean equals(Object o) {
        if (this == o) // Not necessary, but a very cheap optimization
                return true; 
        return (o instanceof DSAGroup) && p.equals(((DSAGroup) o).p)
                && q.equals(((DSAGroup) o).q) && g.equals(((DSAGroup) o).g);
    } 
 
    public boolean equals(DSAGroup o) {
        if (this == o) // Not necessary, but a very cheap optimization
                return true; 
        return p.equals(o.p) && q.equals(o.q) && g.equals(o.g);
    } 
 
    @Override 
	public int hashCode() { 
        return p.hashCode() ^ q.hashCode() ^ g.hashCode();
    } 
     
	public SimpleFieldSet asFieldSet() { 
		SimpleFieldSet fs = new SimpleFieldSet(true);