@Override public boolean equals(Object obj){
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof Minute)) {
    return false;
  }
  Minute that=(Minute)obj;
  if (this.minute != that.minute) {
    return false;
  }
  if (this.hour != that.hour) {
    return false;
  }
  return true;
}

@ Override public boolean equals ( Object obj ) { if ( obj == this ) { return true ; } if ( ! ( obj instanceof Minute ) ) { return false ; } Minute that = ( Minute ) obj ; if ( this . minute != that . minute ) { return false ; } if ( this . hour != that . hour ) { return false ; } return true ; }
tests the equality of this object against an arbitrary object . < p > this method will return true only if the object is a minute object representing the same minute as this instance .
