File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
src/com/magento/idea/magento2plugin/stubs/indexes/data Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -53,4 +53,35 @@ public void setPhpClass(final @NotNull PhpClass phpClass) {
53
53
54
54
phpClassCollection = phpIndex .getClassesByFQN (getType ());
55
55
}
56
+
57
+ /**
58
+ * Overridden hashCode check.
59
+ *
60
+ * @return boolean
61
+ */
62
+ @ Override
63
+ public int hashCode () {
64
+ final int prime = 31 ;
65
+ int result = 1 ;
66
+ result = prime * result + this .sortOrder ;
67
+
68
+ return prime * result + ((this .getType () == null ) ? 0 : this .getType ().hashCode ());
69
+ }
70
+
71
+ /**
72
+ * Overridden quality check.
73
+ *
74
+ * @param object PluginData
75
+ *
76
+ * @return boolean
77
+ */
78
+ @ Override
79
+ public boolean equals (Object object ) {
80
+ if (!(object instanceof PluginData )) {
81
+ return false ;
82
+ }
83
+ final PluginData compareTo = (PluginData ) object ;
84
+
85
+ return type .equals (compareTo .getType ()) && sortOrder == compareTo .getSortOrder ();
86
+ }
56
87
}
You can’t perform that action at this time.
0 commit comments