| public final boolean equals(Object o) Implements abstract java.lang.Record.equals.
Doc from java.lang.Record.equals.
Indicates whether some other object is "equal to" this one. In addition
to the general contract of Object.equals,
record classes must further obey the invariant that when
a record instance is "copied" by passing the result of the record component
accessor methods to the canonical constructor, as follows:
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
|