@Test public void testEquals() { MiddlePinNeedle n1 = new MiddlePinNeedle(); MiddlePinNeedle n2 = new MiddlePinNeedle(); assertEquals(n1, n2); assertEquals(n2, n1); }
@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; }
MiddlePinNeedle extends MeterNeedle implements Cloneable, Serializable { @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; } }
MiddlePinNeedle extends MeterNeedle implements Cloneable, Serializable { @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; }  }
MiddlePinNeedle extends MeterNeedle implements Cloneable, Serializable { @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 boolean equals(Object object); @Override int hashCode(); @Override Object clone(); }
MiddlePinNeedle extends MeterNeedle implements Cloneable, Serializable { @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 boolean equals(Object object); @Override int hashCode(); @Override Object clone();  }