if (x.compareTo(q) >= 0) { throw new IllegalArgumentException("x value too large in field element"); } this.x = x; this.p = q; // curve.getQ();
if ( other == this ) return true; if ( !(other instanceof ECFieldElement) ) return false; ECFieldElement o = (ECFieldElement)other; return p.equals(o.p) && x.equals(o.x);
return x;