File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
src/main/java/com/redislabs/redisgraph/impl Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 11package com .redislabs .redisgraph .impl ;
22
33import java .util .List ;
4+ import java .util .Objects ;
45
56import com .redislabs .redisgraph .Record ;
67
@@ -55,9 +56,24 @@ public int size() {
5556 }
5657
5758 @ Override
58- public String toString () {
59- return this .values .toString ();
59+ public boolean equals (Object o ) {
60+ if (this == o ) return true ;
61+ if (!(o instanceof RecordImpl )) return false ;
62+ RecordImpl record = (RecordImpl ) o ;
63+ return Objects .equals (header , record .header ) &&
64+ Objects .equals (values , record .values );
6065 }
6166
67+ @ Override
68+ public int hashCode () {
69+ return Objects .hash (header , values );
70+ }
6271
72+ @ Override
73+ public String toString () {
74+ final StringBuilder sb = new StringBuilder ("Record{" );
75+ sb .append ("values=" ).append (values );
76+ sb .append ('}' );
77+ return sb .toString ();
78+ }
6379}
You can’t perform that action at this time.
0 commit comments