@Test public void success_DivideCoordinate() { Coordinate coordinate1 = new CoordinateEd25519(new BigInteger("1000")); Coordinate coordinate2 = new CoordinateEd25519(new BigInteger("2")); Coordinate result = coordinate1.divide(coordinate2); assertEquals(result.getInteger(), new BigInteger("500")); }
@Override public final Coordinate divide(Coordinate val) { return new CoordinateEd25519(value.divide(val.getInteger())); }
CoordinateEd25519 extends Coordinate { @Override public final Coordinate divide(Coordinate val) { return new CoordinateEd25519(value.divide(val.getInteger())); } }
CoordinateEd25519 extends Coordinate { @Override public final Coordinate divide(Coordinate val) { return new CoordinateEd25519(value.divide(val.getInteger())); } CoordinateEd25519(BigInteger integer); }
CoordinateEd25519 extends Coordinate { @Override public final Coordinate divide(Coordinate val) { return new CoordinateEd25519(value.divide(val.getInteger())); } CoordinateEd25519(BigInteger integer); @Override final Coordinate add(Coordinate val); @Override final Coordinate divide(Coordinate val); @Override final Coordinate multiply(Coordinate val); @Override final Coordinate subtract(Coordinate val); @Override final Coordinate mod(); @Override final Coordinate inverse(); @Override Coordinate powerMod(BigInteger exponent); @Override Coordinate negate(); @Override EncodedCoordinate encode(); }
CoordinateEd25519 extends Coordinate { @Override public final Coordinate divide(Coordinate val) { return new CoordinateEd25519(value.divide(val.getInteger())); } CoordinateEd25519(BigInteger integer); @Override final Coordinate add(Coordinate val); @Override final Coordinate divide(Coordinate val); @Override final Coordinate multiply(Coordinate val); @Override final Coordinate subtract(Coordinate val); @Override final Coordinate mod(); @Override final Coordinate inverse(); @Override Coordinate powerMod(BigInteger exponent); @Override Coordinate negate(); @Override EncodedCoordinate encode(); static final CoordinateEd25519 ONE; }