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) {
5353
5454 phpClassCollection = phpIndex .getClassesByFQN (getType ());
5555 }
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+ }
5687}
You can’t perform that action at this time.
0 commit comments