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