@Test public void testHashCode() { assertTrue(getTestObject().hashCode() == getTestObject().hashCode()); AssetEvent testObject = getTestObject(); assertTrue(testObject.hashCode() != 0); AssetEvent differentObject = getTestObject(); differentObject.setAsset(null); assertFalse(testObject.hashCode() == differentObject.hashCode()); }
@Override public int hashCode() { return Objects.hash(super.hashCode(), getAsset()); }
AssetEvent extends AssetConsumerEvent { @Override public int hashCode() { return Objects.hash(super.hashCode(), getAsset()); } }
AssetEvent extends AssetConsumerEvent { @Override public int hashCode() { return Objects.hash(super.hashCode(), getAsset()); } AssetEvent();  AssetEvent(AssetEvent template); }
AssetEvent extends AssetConsumerEvent { @Override public int hashCode() { return Objects.hash(super.hashCode(), getAsset()); } AssetEvent();  AssetEvent(AssetEvent template); Asset getAsset(); void setAsset(Asset asset); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
AssetEvent extends AssetConsumerEvent { @Override public int hashCode() { return Objects.hash(super.hashCode(), getAsset()); } AssetEvent();  AssetEvent(AssetEvent template); Asset getAsset(); void setAsset(Asset asset); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }