@Test public void testEquals() { PinNeedle n1 = new PinNeedle(); PinNeedle n2 = new PinNeedle(); assertEquals(n1, n2); assertEquals(n2, n1); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PinNeedle)) { return false; } if (!super.equals(obj)) { return false; } return true; }
PinNeedle extends MeterNeedle implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PinNeedle)) { return false; } if (!super.equals(obj)) { return false; } return true; } }
PinNeedle extends MeterNeedle implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PinNeedle)) { return false; } if (!super.equals(obj)) { return false; } return true; }  }
PinNeedle extends MeterNeedle implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PinNeedle)) { return false; } if (!super.equals(obj)) { return false; } return true; }  @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
PinNeedle extends MeterNeedle implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof PinNeedle)) { return false; } if (!super.equals(obj)) { return false; } return true; }  @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }