public boolean checkConsistency() { return super.checkConsistency() && (this.dimension == 3 || this.z == 0.0) && (this.haveMeasure || this.m == 0.0); } }
public boolean checkConsistency() { return super.checkConsistency() && (this.dimension == 3 || this.z == 0.0) && (this.haveMeasure || this.m == 0.0); } }
public boolean checkConsistency() { if (super.checkConsistency()) { if (isEmpty()) { return true; } // cache to avoid getMember opcode int _dimension = this.dimension; boolean _haveMeasure = this.haveMeasure; int _srid = this.srid; for (int i = 0; i < subgeoms.length; i++) { Geometry sub = subgeoms[i]; if (!(sub.checkConsistency() && sub.dimension == _dimension && sub.haveMeasure == _haveMeasure && sub.srid == _srid)) { return false; } } return true; } else { return false; } }
public boolean checkConsistency() { if (super.checkConsistency()) { if (isEmpty()) { return true; } // cache to avoid getMember opcode int _dimension = this.dimension; boolean _haveMeasure = this.haveMeasure; int _srid = this.srid; for (int i = 0; i < subgeoms.length; i++) { Geometry sub = subgeoms[i]; if (!(sub.checkConsistency() && sub.dimension == _dimension && sub.haveMeasure == _haveMeasure && sub.srid == _srid)) { return false; } } return true; } else { return false; } }