@Test public void testEquals() { final ZoomLevels zoomLevels1 = new ZoomLevels(4, 2, 3, 0); final ZoomLevels zoomLevels2 = new ZoomLevels(4, 2, 3, 1); final ZoomLevels zoomLevels3 = new ZoomLevels(1, 2, 3, 3, 3, 4); assertEquals(zoomLevels2, zoomLevels3); assertEquals(zoomLevels3, zoomLevels2); assertEquals(zoomLevels2, zoomLevels2); assertEquals(zoomLevels3, zoomLevels3); assertEquals(zoomLevels1, zoomLevels1); assertNotEquals(zoomLevels1, zoomLevels2); assertNotEquals(zoomLevels1, zoomLevels3); assertNotEquals(zoomLevels2, zoomLevels1); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ZoomLevels that = (ZoomLevels) o; return Arrays.equals(scaleDenominators, that.scaleDenominators); }
ZoomLevels implements ConfigurationObject { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ZoomLevels that = (ZoomLevels) o; return Arrays.equals(scaleDenominators, that.scaleDenominators); } }
ZoomLevels implements ConfigurationObject { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ZoomLevels that = (ZoomLevels) o; return Arrays.equals(scaleDenominators, that.scaleDenominators); } ZoomLevels(final double... scaleDenominators);  ZoomLevels(); }
ZoomLevels implements ConfigurationObject { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ZoomLevels that = (ZoomLevels) o; return Arrays.equals(scaleDenominators, that.scaleDenominators); } ZoomLevels(final double... scaleDenominators);  ZoomLevels(); void setScales(final double[] newScaleDenominators); int size(); Scale get(final int index, final DistanceUnit unit); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override void validate(final List<Throwable> validationErrors, final Configuration configuration); double[] getScaleDenominators(); }
ZoomLevels implements ConfigurationObject { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ZoomLevels that = (ZoomLevels) o; return Arrays.equals(scaleDenominators, that.scaleDenominators); } ZoomLevels(final double... scaleDenominators);  ZoomLevels(); void setScales(final double[] newScaleDenominators); int size(); Scale get(final int index, final DistanceUnit unit); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override void validate(final List<Throwable> validationErrors, final Configuration configuration); double[] getScaleDenominators();  }