if (obj instanceof JtsGeometry) return ((JtsGeometry) obj).getValue().equals(geom);
if ((obj != null) && (obj instanceof JtsGeometry)) { Geometry other = ((JtsGeometry) obj).geom; if (this.geom == other) { return true; } else if (this.geom != null && other != null) { return other.equals(this.geom); } }
    public boolean equals(Object obj) {        if (obj instanceof JtsGeometry)            return ((JtsGeometry) obj).getValue().equals(geom);        return false;    }