@Test public void toleranceTest2() { IValueEq<PhysicalData> eq = new PhysicalDataValueEq(0.01); PhysicalData a = new ImmutablePhysicalData(null, 10F, 10F, 10D, 10F, null, 10D, 10F, 10F, 10F); PhysicalData b = new ImmutablePhysicalData(null, 10F, 10F, 10.01, 10F, null, 10D, 10F, 10F, 10F); assertTrue(eq.equal(a, b)); }
@Override public boolean equal(PhysicalData a, PhysicalData b) { return same(a.getAltitude(), b.getAltitude()) && same(a.getDepth(), b.getDepth()) && same(a.getLatitude(), b.getLatitude()) && same(a.getLight(), b.getLight()) && same(a.getLongitude(), b.getLongitude()) && same (a.getOxygen(), b.getOxygen()) && same(a.getSalinity(), b.getSalinity()) && same(a.getTemperature(), b.getTemperature()); }
PhysicalDataValueEq implements IValueEq<PhysicalData> { @Override public boolean equal(PhysicalData a, PhysicalData b) { return same(a.getAltitude(), b.getAltitude()) && same(a.getDepth(), b.getDepth()) && same(a.getLatitude(), b.getLatitude()) && same(a.getLight(), b.getLight()) && same(a.getLongitude(), b.getLongitude()) && same (a.getOxygen(), b.getOxygen()) && same(a.getSalinity(), b.getSalinity()) && same(a.getTemperature(), b.getTemperature()); } }
PhysicalDataValueEq implements IValueEq<PhysicalData> { @Override public boolean equal(PhysicalData a, PhysicalData b) { return same(a.getAltitude(), b.getAltitude()) && same(a.getDepth(), b.getDepth()) && same(a.getLatitude(), b.getLatitude()) && same(a.getLight(), b.getLight()) && same(a.getLongitude(), b.getLongitude()) && same (a.getOxygen(), b.getOxygen()) && same(a.getSalinity(), b.getSalinity()) && same(a.getTemperature(), b.getTemperature()); } PhysicalDataValueEq(double eps);  PhysicalDataValueEq(); }
PhysicalDataValueEq implements IValueEq<PhysicalData> { @Override public boolean equal(PhysicalData a, PhysicalData b) { return same(a.getAltitude(), b.getAltitude()) && same(a.getDepth(), b.getDepth()) && same(a.getLatitude(), b.getLatitude()) && same(a.getLight(), b.getLight()) && same(a.getLongitude(), b.getLongitude()) && same (a.getOxygen(), b.getOxygen()) && same(a.getSalinity(), b.getSalinity()) && same(a.getTemperature(), b.getTemperature()); } PhysicalDataValueEq(double eps);  PhysicalDataValueEq(); @Override boolean equal(PhysicalData a, PhysicalData b); }
PhysicalDataValueEq implements IValueEq<PhysicalData> { @Override public boolean equal(PhysicalData a, PhysicalData b) { return same(a.getAltitude(), b.getAltitude()) && same(a.getDepth(), b.getDepth()) && same(a.getLatitude(), b.getLatitude()) && same(a.getLight(), b.getLight()) && same(a.getLongitude(), b.getLongitude()) && same (a.getOxygen(), b.getOxygen()) && same(a.getSalinity(), b.getSalinity()) && same(a.getTemperature(), b.getTemperature()); } PhysicalDataValueEq(double eps);  PhysicalDataValueEq(); @Override boolean equal(PhysicalData a, PhysicalData b);  }