GetVectorTileRequest extends LayerIdCommandRequest implements TileMetadata, CacheableObject { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof GetVectorTileRequest)) { return false; } GetVectorTileRequest that = (GetVectorTileRequest) o; if (paintGeometries != that.paintGeometries) { return false; } if (paintLabels != that.paintLabels) { return false; } if (Math.abs(that.scale - scale) > EQUALS_DELTA) { return false; } if (code != null ? !code.equals(that.code) : that.code != null) { return false; } if (crs != null ? !crs.equals(that.crs) : that.crs != null) { return false; } if (filter != null ? !filter.equals(that.filter) : that.filter != null) { return false; } if (panOrigin != null ? !panOrigin.equals(that.panOrigin) : that.panOrigin != null) { return false; } if (renderer != null ? !renderer.equals(that.renderer) : that.renderer != null) { return false; } if (styleInfo != null ? !styleInfo.equals(that.styleInfo) : that.styleInfo != null) { return false; } return true; } GetVectorTileRequest();  GetVectorTileRequest(TileMetadata tileMetadata); TileCode getCode(); void setCode(TileCode code); double getScale(); void setScale(double scale); Coordinate getPanOrigin(); void setPanOrigin(Coordinate panOrigin); String getFilter(); void setFilter(String filter); String getCrs(); void setCrs(String crs); NamedStyleInfo getStyleInfo(); void setStyleInfo(NamedStyleInfo styleInfo); String getRenderer(); void setRenderer(String renderer); boolean isPaintGeometries(); void setPaintGeometries(boolean paintGeometries); boolean isPaintLabels(); void setPaintLabels(boolean paintLabels); @Deprecated @Json(serialize = false) int getFeatureIncludes(); @Deprecated void setFeatureIncludes(int featureIncludes); String getCacheId(); @Override String toString(); @Override boolean equals(Object o); boolean isPartOf(GetVectorTileRequest request); @Override int hashCode(); static final String COMMAND; }
@Test public void testEquals() { GetVectorTileRequest left = new GetVectorTileRequest(); set(left, true, false); GetVectorTileRequest right = new GetVectorTileRequest(); set(right, true, false); Assert.assertTrue(left.equals(left)); Assert.assertTrue(left.equals(right)); Assert.assertTrue(right.equals(left)); Assert.assertFalse(left.equals("bla")); Assert.assertFalse(left.equals(null)); }