@Test public void testEquals() { new EqualsTester() .addEqualityGroup(stats1, stats1) .addEqualityGroup(stats2) .addEqualityGroup(stats3) .testEquals(); }
@Override public boolean equals(Object o) { if (!(o instanceof MapEvent)) { return false; } MapEvent<K, V> that = (MapEvent) o; return Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.newValue, that.newValue) && Objects.equals(this.oldValue, that.oldValue); }
MapEvent { @Override public boolean equals(Object o) { if (!(o instanceof MapEvent)) { return false; } MapEvent<K, V> that = (MapEvent) o; return Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.newValue, that.newValue) && Objects.equals(this.oldValue, that.oldValue); } }
MapEvent { @Override public boolean equals(Object o) { if (!(o instanceof MapEvent)) { return false; } MapEvent<K, V> that = (MapEvent) o; return Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.newValue, that.newValue) && Objects.equals(this.oldValue, that.oldValue); } MapEvent(String name, K key, Versioned<V> currentValue, Versioned<V> previousValue); }
MapEvent { @Override public boolean equals(Object o) { if (!(o instanceof MapEvent)) { return false; } MapEvent<K, V> that = (MapEvent) o; return Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.newValue, that.newValue) && Objects.equals(this.oldValue, that.oldValue); } MapEvent(String name, K key, Versioned<V> currentValue, Versioned<V> previousValue); String name(); Type type(); K key(); @Deprecated Versioned<V> value(); Versioned<V> newValue(); Versioned<V> oldValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
MapEvent { @Override public boolean equals(Object o) { if (!(o instanceof MapEvent)) { return false; } MapEvent<K, V> that = (MapEvent) o; return Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.key, that.key) && Objects.equals(this.newValue, that.newValue) && Objects.equals(this.oldValue, that.oldValue); } MapEvent(String name, K key, Versioned<V> currentValue, Versioned<V> previousValue); String name(); Type type(); K key(); @Deprecated Versioned<V> value(); Versioned<V> newValue(); Versioned<V> oldValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }