@Override public boolean equals(Object object){
  if (object == null) {
    return false;
  }
  if (object == this) {
    return true;
  }
  if (super.equals(object) && object instanceof MiddlePinNeedle) {
    return true;
  }
  return false;
}

@ Override public boolean equals ( Object object ) { if ( object == null ) { return false ; } if ( object == this ) { return true ; } if ( super . equals ( object ) && object instanceof MiddlePinNeedle ) { return true ; } return false ; }
tests another object for equality with this object .
