public boolean equals(Object obj){
  if (this == obj)   return true;
  if (obj == null || getClass() != obj.getClass())   return false;
  MessageFormat other=(MessageFormat)obj;
  return (maxOffset == other.maxOffset && pattern.equals(other.pattern) && ((locale != null && locale.equals(other.locale)) || (locale == null && other.locale == null)) && Arrays.equals(offsets,other.offsets) && Arrays.equals(argumentNumbers,other.argumentNumbers) && Arrays.equals(formats,other.formats));
}

public boolean equals ( Object obj ) { if ( this == obj ) return true ; if ( obj == null || getClass ( ) != obj . getClass ( ) ) return false ; MessageFormat other = ( MessageFormat ) obj ; return ( maxOffset == other . maxOffset && pattern . equals ( other . pattern ) && ( ( locale != null && locale . equals ( other . locale ) ) || ( locale == null && other . locale == null ) ) && Arrays . equals ( offsets , other . offsets ) && Arrays . equals ( argumentNumbers , other . argumentNumbers ) && Arrays . equals ( formats , other . formats ) ) ; }
equality comparison between two message format objects
