@Test public void testHashCodeContract() { assertTrue("Wrong hashCode implementation, same objects have NOT same hash-code ", one.hashCode() == sameRefAsOne.hashCode()); assertFalse("Wrong hashCode implementation, different objects have same hash-code", one.hashCode() == two.hashCode()); assertTrue("Wrong hashCode implementation, same objects have NOT same hash-code ", one.hashCode() == sameAsOne.hashCode()); }
@Override public int hashCode() { final int prime = 17; int result = super.hashCode(); result = prime * result + action.hashCode() + selection.hashCode(); return result; }
TableMultiSelectEvent extends Event { @Override public int hashCode() { final int prime = 17; int result = super.hashCode(); result = prime * result + action.hashCode() + selection.hashCode(); return result; } }
TableMultiSelectEvent extends Event { @Override public int hashCode() { final int prime = 17; int result = super.hashCode(); result = prime * result + action.hashCode() + selection.hashCode(); return result; } TableMultiSelectEvent(final String command, final String action, final BitSet selection); }
TableMultiSelectEvent extends Event { @Override public int hashCode() { final int prime = 17; int result = super.hashCode(); result = prime * result + action.hashCode() + selection.hashCode(); return result; } TableMultiSelectEvent(final String command, final String action, final BitSet selection); String getAction(); BitSet getSelection(); @Override boolean equals(final Object obj); @Override int hashCode(); }
TableMultiSelectEvent extends Event { @Override public int hashCode() { final int prime = 17; int result = super.hashCode(); result = prime * result + action.hashCode() + selection.hashCode(); return result; } TableMultiSelectEvent(final String command, final String action, final BitSet selection); String getAction(); BitSet getSelection(); @Override boolean equals(final Object obj); @Override int hashCode();  }