@Override public boolean equals(Object o) { if (!(o instanceof BaseXYZSolid)) return false; BaseXYZSolid other = (BaseXYZSolid) o; return super.equals(other); }
@Override public int hashCode() { return super.hashCode(); }
/** The lats/lons must be clockwise or counter-clockwise. */ public PointInGeo3DShapeQuery(String field, GeoShape shape) { this.field = field; this.shape = shape; this.shapeBounds = new XYZBounds(); shape.getBounds(shapeBounds); if (shape instanceof BasePlanetObject) { BasePlanetObject planetObject = (BasePlanetObject) shape; if (planetObject.getPlanetModel().equals(PlanetModel.WGS84) == false) { throw new IllegalArgumentException("this qurey requires PlanetModel.WGS84, but got: " + planetObject.getPlanetModel()); } } }
@Override public boolean equals(Object o) { if (!(o instanceof GeoBaseCompositeShape<?>)) return false; GeoBaseCompositeShape<?> other = (GeoBaseCompositeShape<?>) o; return super.equals(other) && shapes.equals(other.shapes); } }
@Override public int hashCode() { return super.hashCode() + shapes.hashCode(); }