File tree Expand file tree Collapse file tree
epics-vtype/vtype/src/main/java/org/epics/vtype Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .epics .vtype ;
22
33import java .util .List ;
4+ import java .util .Objects ;
45
56import org .epics .util .array .ArrayInteger ;
67import org .epics .util .array .ListInteger ;
@@ -39,5 +40,29 @@ public String toString() {
3940 .append (']' );
4041 return builder .toString ();
4142 }
43+
44+ @ Override
45+ public final boolean equals (Object obj ) {
46+ if (this == obj ) {
47+ return true ;
48+ }
49+ if (obj instanceof VStringArray ) {
50+ VStringArray other = (VStringArray ) obj ;
51+ return getClass ().equals (other .getClass ()) &&
52+ getData ().equals (other .getData ()) &&
53+ getAlarm ().equals (other .getAlarm ()) &&
54+ getTime ().equals (other .getTime ());
55+ }
56+ return false ;
57+ }
58+
59+ @ Override
60+ public final int hashCode () {
61+ int hash = 7 ;
62+ hash = 23 * hash + Objects .hashCode (getData ());
63+ hash = 23 * hash + Objects .hashCode (getAlarm ());
64+ hash = 23 * hash + Objects .hashCode (getTime ());
65+ return hash ;
66+ }
4267
4368}
You can’t perform that action at this time.
0 commit comments