Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1757a96d authored by Kevin Hufnagle's avatar Kevin Hufnagle
Browse files

docs: Add documentation for equals() method

Explain the conditions that must be true in order for two objects
of type `ComponentName` to be considered equal.

Test: make ds-docs -j32

Bug: 62991861

Change-Id: I162ecd825b187ca688af11271a937e3740a4a833
Exempt-From-Owner-Approval: Docs-only change
parent 98274d96
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -305,6 +305,12 @@ public final class ComponentName implements Parcelable, Cloneable, Comparable<Co
        proto.end(token);
    }

    /**
     * {@inheritDoc}
     *
     * <p>Two components are considered to be equal if the packages in which they reside have the
     * same name, and if the classes that implement each component also have the same name.
     */
    @Override
    public boolean equals(Object obj) {
        try {