@Override public boolean equals(Object obj){
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof MetadataContext)) {
    return false;
  }
  MetadataContext other=(MetadataContext)obj;
  if (altFormat == null) {
    if (other.altFormat != null) {
      return false;
    }
  }
 else   if (!altFormat.equals(other.altFormat)) {
    return false;
  }
  if (projection == null) {
    if (other.projection != null) {
      return false;
    }
  }
 else   if (!projection.equals(other.projection)) {
    return false;
  }
  if (version == null) {
    if (other.version != null) {
      return false;
    }
  }
 else   if (!version.equals(other.version)) {
    return false;
  }
  return true;
}

@ Override public boolean equals ( Object obj ) { if ( obj == this ) { return true ; } if ( ! ( obj instanceof MetadataContext ) ) { return false ; } MetadataContext other = ( MetadataContext ) obj ; if ( altFormat == null ) { if ( other . altFormat != null ) { return false ; } } else if ( ! altFormat . equals ( other . altFormat ) ) { return false ; } if ( projection == null ) { if ( other . projection != null ) { return false ; } } else if ( ! projection . equals ( other . projection ) ) { return false ; } if ( version == null ) { if ( other . version != null ) { return false ; } } else if ( ! version . equals ( other . version ) ) { return false ; } return true ; }
checks that the other object is a metadata context with the same alt type and version .
