コード例 #1
0
ファイル: Envelope3D.java プロジェクト: usuallycwdillon/gama
 /** Compares the specified object with this envelope for equality. */
 @Override
 public boolean equals(final Object other) {
   if (!(other instanceof Envelope3D)) {
     return false;
   }
   Envelope3D otherEnvelope = (Envelope3D) other;
   if (isNull()) {
     return otherEnvelope.isNull();
   }
   if (super.equals(other) && minz == otherEnvelope.getMinZ() && maxz == otherEnvelope.getMaxZ()) {
     return true;
   }
   return false;
 }