Changeset 108 for trunk/EventBenchCore/src/de/ugoe/cs/eventbench
- Timestamp:
- 07/05/11 15:36:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/EventBenchCore/src/de/ugoe/cs/eventbench/data/ReplayableEvent.java ΒΆ
r86 r108 149 149 } 150 150 151 /* (non-Javadoc) 152 * @see de.ugoe.cs.eventbench.data.Event#equals(java.lang.Object) 153 */ 154 @Override 155 public boolean equals(Object other) { 156 if (this == other) { 157 return true; 158 } 159 if (other instanceof ReplayableEvent<?>) { 160 ReplayableEvent<?> otherEvent = (ReplayableEvent<?>) other; 161 return super.equals(otherEvent) 162 && replayEvents.equals(otherEvent.replayEvents) 163 && replayValid == otherEvent.replayValid; 164 165 } else { 166 return false; 167 } 168 } 169 170 /* (non-Javadoc) 171 * @see de.ugoe.cs.eventbench.data.Event#hashCode() 172 */ 173 @Override 174 public int hashCode() { 175 int multiplier = 17; 176 int hash = super.hashCode(); 177 hash = multiplier * hash + replayEvents.hashCode(); 178 hash = multiplier * hash + (replayValid ? 1 : 0); 179 180 return hash; 181 } 151 182 }
Note: See TracChangeset
for help on using the changeset viewer.