@Test public void testEquals() { new EqualsTester() .addEqualityGroup(event1) .addEqualityGroup(event2, sameAsEvent2) .addEqualityGroup(event3) .addEqualityGroup(event4) .addEqualityGroup(event5) .addEqualityGroup(event6) .testEquals(); }
@Override public boolean equals(Object o) { if (!(o instanceof EventuallyConsistentMapEvent)) { return false; } EventuallyConsistentMapEvent that = (EventuallyConsistentMapEvent) o; return Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value) && Objects.equals(this.name, that.name); }
EventuallyConsistentMapEvent { @Override public boolean equals(Object o) { if (!(o instanceof EventuallyConsistentMapEvent)) { return false; } EventuallyConsistentMapEvent that = (EventuallyConsistentMapEvent) o; return Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value) && Objects.equals(this.name, that.name); } }
EventuallyConsistentMapEvent { @Override public boolean equals(Object o) { if (!(o instanceof EventuallyConsistentMapEvent)) { return false; } EventuallyConsistentMapEvent that = (EventuallyConsistentMapEvent) o; return Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value) && Objects.equals(this.name, that.name); } EventuallyConsistentMapEvent(String name, Type type, K key, V value); }
EventuallyConsistentMapEvent { @Override public boolean equals(Object o) { if (!(o instanceof EventuallyConsistentMapEvent)) { return false; } EventuallyConsistentMapEvent that = (EventuallyConsistentMapEvent) o; return Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value) && Objects.equals(this.name, that.name); } EventuallyConsistentMapEvent(String name, Type type, K key, V value); String name(); Type type(); K key(); V value(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
EventuallyConsistentMapEvent { @Override public boolean equals(Object o) { if (!(o instanceof EventuallyConsistentMapEvent)) { return false; } EventuallyConsistentMapEvent that = (EventuallyConsistentMapEvent) o; return Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value) && Objects.equals(this.name, that.name); } EventuallyConsistentMapEvent(String name, Type type, K key, V value); String name(); Type type(); K key(); V value(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }