@Test public void testEquals() { WindNeedle n1 = new WindNeedle(); WindNeedle n2 = new WindNeedle(); 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 WindNeedle) { return true; } return false; }
WindNeedle extends ArrowNeedle 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 WindNeedle) { return true; } return false; } }
WindNeedle extends ArrowNeedle 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 WindNeedle) { return true; } return false; } WindNeedle(); }
WindNeedle extends ArrowNeedle 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 WindNeedle) { return true; } return false; } WindNeedle(); @Override boolean equals(Object object); @Override int hashCode(); }
WindNeedle extends ArrowNeedle 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 WindNeedle) { return true; } return false; } WindNeedle(); @Override boolean equals(Object object); @Override int hashCode();  }