@Override public boolean equals(Object o){
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  ObjectStat that=(ObjectStat)o;
  if (length != that.length) {
    return false;
  }
  if (!bucketName.equals(that.bucketName)) {
    return false;
  }
  if (!name.equals(that.name)) {
    return false;
  }
  if (!createdTime.equals(that.createdTime)) {
    return false;
  }
  if (!etag.equals(that.etag)) {
    return false;
  }
  return contentType.equals(that.contentType);
}

@ Override public boolean equals ( Object o ) { if ( this == o ) { return true ; } if ( o == null || getClass ( ) != o . getClass ( ) ) { return false ; } ObjectStat that = ( ObjectStat ) o ; if ( length != that . length ) { return false ; } if ( ! bucketName . equals ( that . bucketName ) ) { return false ; } if ( ! name . equals ( that . name ) ) { return false ; } if ( ! createdTime . equals ( that . createdTime ) ) { return false ; } if ( ! etag . equals ( that . etag ) ) { return false ; } return contentType . equals ( that . contentType ) ; }
checks whether given object is same as this objectstat .
