diff options
| author | Kevin Hufnagle <khufnagle@google.com> | 2020-01-03 07:38:37 -0800 |
|---|---|---|
| committer | Kevin Hufnagle <khufnagle@google.com> | 2020-01-07 18:30:50 +0000 |
| commit | 1757a96d7c5552c50b34ff47f8219380511c575c (patch) | |
| tree | 17644fa305b2c5b8b41a2557656c1b23b30d5722 /core/java/android/content/ComponentName.java | |
| parent | 98274d96f511e1af9b8b0821e47ab5ca98319b08 (diff) | |
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
Diffstat (limited to 'core/java/android/content/ComponentName.java')
| -rw-r--r-- | core/java/android/content/ComponentName.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/content/ComponentName.java b/core/java/android/content/ComponentName.java index 18147b572125..2a9b49189c3b 100644 --- a/core/java/android/content/ComponentName.java +++ b/core/java/android/content/ComponentName.java @@ -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 { |
