File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
client/deployment/src/main/resources/templates/libraries/microprofile Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,22 @@ public class {m.classname} {#if m.parent}extends {m.parent}{/if}{#if serializabl
138138
139139 {#if equals-hashcode}
140140 {#if m.vars.size > 0}
141+ /**
142+ * Compares this object to the specified object. The result is
143+ * \{@code true\} if and only if the argument is not
144+ * \{@code null\} and is a \{@code {m.classname}\} object that
145+ * contains the same values as this object.
146+ *
147+ * @param obj the object to compare with.
148+ * @return \{@code true\} if the objects are the same;
149+ * \{@code false\} otherwise.
150+ **/
141151 @Override
142- public boolean equals(Object o ) {
143- if (this == o ) return true;
144- if (o == null || getClass() != o .getClass()) return false;
152+ public boolean equals(Object obj ) {
153+ if (this == obj ) return true;
154+ if (obj == null || getClass() != obj .getClass()) return false;
145155
146- {m.classname} model = ({m.classname}) o ;
156+ {m.classname} model = ({m.classname}) obj ;
147157
148158 {#if m.vars.size == 1}
149159 return Objects.equals({m.vars.0.name}, model.{m.vars.0.name});
@@ -160,6 +170,11 @@ public class {m.classname} {#if m.parent}extends {m.parent}{/if}{#if serializabl
160170 {/if}
161171 }
162172
173+ /**
174+ * Returns a hash code for a \{@code {m.classname}\}.
175+ *
176+ * @return a hash code value for a \{@code {m.classname}\}.
177+ **/
163178 @Override
164179 public int hashCode() {
165180 {#if m.vars.size == 1}
You can’t perform that action at this time.
0 commit comments