@Test public void testIsPartOf() { GetVectorTileRequest labels = new GetVectorTileRequest(); GetVectorTileRequest geometries = new GetVectorTileRequest(); GetVectorTileRequest labelsAndGeometries = new GetVectorTileRequest(); GetVectorTileRequest nothing = new GetVectorTileRequest(); set(labels, false, true); set(geometries, true, false); set(labelsAndGeometries, true, true); set(nothing, false, false); Assert.assertTrue(nothing.isPartOf(labels)); Assert.assertTrue(nothing.isPartOf(geometries)); Assert.assertTrue(nothing.isPartOf(labelsAndGeometries)); Assert.assertTrue(labels.isPartOf(labels)); Assert.assertFalse(labels.isPartOf(geometries)); Assert.assertTrue(labels.isPartOf(labelsAndGeometries)); Assert.assertFalse(geometries.isPartOf(labels)); Assert.assertTrue(geometries.isPartOf(geometries)); Assert.assertTrue(geometries.isPartOf(labelsAndGeometries)); Assert.assertFalse(labelsAndGeometries.isPartOf(labels)); Assert.assertFalse(labelsAndGeometries.isPartOf(geometries)); Assert.assertTrue(labelsAndGeometries.isPartOf(labelsAndGeometries)); labels.setFilter("foo"); Assert.assertFalse(labels.isPartOf(labelsAndGeometries)); }
public boolean isPartOf(GetVectorTileRequest request) { if (Math.abs(request.scale - scale) > EQUALS_DELTA) { return false; } if (code != null ? !code.equals(request.code) : request.code != null) { return false; } if (crs != null ? !crs.equals(request.crs) : request.crs != null) { return false; } if (filter != null ? !filter.equals(request.filter) : request.filter != null) { return false; } if (panOrigin != null ? !panOrigin.equals(request.panOrigin) : request.panOrigin != null) { return false; } if (renderer != null ? !renderer.equals(request.renderer) : request.renderer != null) { return false; } if (styleInfo != null ? !styleInfo.equals(request.styleInfo) : request.styleInfo != null) { return false; } if (paintGeometries && !request.paintGeometries) { return false; } if (paintLabels && !request.paintLabels) { return false; } return true; }
GetVectorTileRequest extends LayerIdCommandRequest implements TileMetadata, CacheableObject { public boolean isPartOf(GetVectorTileRequest request) { if (Math.abs(request.scale - scale) > EQUALS_DELTA) { return false; } if (code != null ? !code.equals(request.code) : request.code != null) { return false; } if (crs != null ? !crs.equals(request.crs) : request.crs != null) { return false; } if (filter != null ? !filter.equals(request.filter) : request.filter != null) { return false; } if (panOrigin != null ? !panOrigin.equals(request.panOrigin) : request.panOrigin != null) { return false; } if (renderer != null ? !renderer.equals(request.renderer) : request.renderer != null) { return false; } if (styleInfo != null ? !styleInfo.equals(request.styleInfo) : request.styleInfo != null) { return false; } if (paintGeometries && !request.paintGeometries) { return false; } if (paintLabels && !request.paintLabels) { return false; } return true; } }
GetVectorTileRequest extends LayerIdCommandRequest implements TileMetadata, CacheableObject { public boolean isPartOf(GetVectorTileRequest request) { if (Math.abs(request.scale - scale) > EQUALS_DELTA) { return false; } if (code != null ? !code.equals(request.code) : request.code != null) { return false; } if (crs != null ? !crs.equals(request.crs) : request.crs != null) { return false; } if (filter != null ? !filter.equals(request.filter) : request.filter != null) { return false; } if (panOrigin != null ? !panOrigin.equals(request.panOrigin) : request.panOrigin != null) { return false; } if (renderer != null ? !renderer.equals(request.renderer) : request.renderer != null) { return false; } if (styleInfo != null ? !styleInfo.equals(request.styleInfo) : request.styleInfo != null) { return false; } if (paintGeometries && !request.paintGeometries) { return false; } if (paintLabels && !request.paintLabels) { return false; } return true; } GetVectorTileRequest();  GetVectorTileRequest(TileMetadata tileMetadata); }
GetVectorTileRequest extends LayerIdCommandRequest implements TileMetadata, CacheableObject { public boolean isPartOf(GetVectorTileRequest request) { if (Math.abs(request.scale - scale) > EQUALS_DELTA) { return false; } if (code != null ? !code.equals(request.code) : request.code != null) { return false; } if (crs != null ? !crs.equals(request.crs) : request.crs != null) { return false; } if (filter != null ? !filter.equals(request.filter) : request.filter != null) { return false; } if (panOrigin != null ? !panOrigin.equals(request.panOrigin) : request.panOrigin != null) { return false; } if (renderer != null ? !renderer.equals(request.renderer) : request.renderer != null) { return false; } if (styleInfo != null ? !styleInfo.equals(request.styleInfo) : request.styleInfo != null) { return false; } if (paintGeometries && !request.paintGeometries) { return false; } if (paintLabels && !request.paintLabels) { 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(); }
GetVectorTileRequest extends LayerIdCommandRequest implements TileMetadata, CacheableObject { public boolean isPartOf(GetVectorTileRequest request) { if (Math.abs(request.scale - scale) > EQUALS_DELTA) { return false; } if (code != null ? !code.equals(request.code) : request.code != null) { return false; } if (crs != null ? !crs.equals(request.crs) : request.crs != null) { return false; } if (filter != null ? !filter.equals(request.filter) : request.filter != null) { return false; } if (panOrigin != null ? !panOrigin.equals(request.panOrigin) : request.panOrigin != null) { return false; } if (renderer != null ? !renderer.equals(request.renderer) : request.renderer != null) { return false; } if (styleInfo != null ? !styleInfo.equals(request.styleInfo) : request.styleInfo != null) { return false; } if (paintGeometries && !request.paintGeometries) { return false; } if (paintLabels && !request.paintLabels) { 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; }