@Override public boolean equals(Object object){
  if (object == this) {
    return true;
  }
  if (object instanceof ResizableDoubleArray == false) {
    return false;
  }
  boolean result=true;
  final ResizableDoubleArray other=(ResizableDoubleArray)object;
  result=result && (other.contractionCriterion == contractionCriterion);
  result=result && (other.expansionFactor == expansionFactor);
  result=result && (other.expansionMode == expansionMode);
  result=result && (other.numElements == numElements);
  result=result && (other.startIndex == startIndex);
  if (!result) {
    return false;
  }
 else {
    return Arrays.equals(internalArray,other.internalArray);
  }
}

@ Override public boolean equals ( Object object ) { if ( object == this ) { return true ; } if ( object instanceof ResizableDoubleArray == false ) { return false ; } boolean result = true ; final ResizableDoubleArray other = ( ResizableDoubleArray ) object ; result = result && ( other . contractionCriterion == contractionCriterion ) ; result = result && ( other . expansionFactor == expansionFactor ) ; result = result && ( other . expansionMode == expansionMode ) ; result = result && ( other . numElements == numElements ) ; result = result && ( other . startIndex == startIndex ) ; if ( ! result ) { return false ; } else { return Arrays . equals ( internalArray , other . internalArray ) ; } }
returns true iff object is a resizabledoublearray with the same properties as this and an identical internal storage array .
