From b14921cfb0ff5cb35ad654b7cdd89517404cbfea Mon Sep 17 00:00:00 2001 From: Omer Ozer Date: Tue, 7 Feb 2023 20:34:06 +0000 Subject: [PATCH] Adding java doc coverage for a few methods on credesc Bug: 268195935 Test: manual Change-Id: I0e7b5156a34cb5924c3bd607d935c4ec8e91869b --- .../android/credentials/CredentialDescription.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/java/android/credentials/CredentialDescription.java b/core/java/android/credentials/CredentialDescription.java index c67d37e70b3cc..f9db5e8bf44c5 100644 --- a/core/java/android/credentials/CredentialDescription.java +++ b/core/java/android/credentials/CredentialDescription.java @@ -48,7 +48,7 @@ public final class CredentialDescription implements Parcelable { private final String mFlattenedRequestString; /** - * The entry to be used in the UI. + * The credential entries to be used in the UI. */ @NonNull private final List mCredentialEntries; @@ -128,16 +128,25 @@ public final class CredentialDescription implements Parcelable { dest.writeTypedList(mCredentialEntries, flags); } + /** + * Returns the type of the Credential described. + */ @NonNull public String getType() { return mType; } + /** + * Returns the flattened JSON string that will be matched with requests. + */ @NonNull public String getFlattenedRequestString() { return mFlattenedRequestString; } + /** + * Returns the credential entries to be used in the UI. + */ @NonNull public List getCredentialEntries() { return mCredentialEntries; @@ -151,6 +160,7 @@ public final class CredentialDescription implements Parcelable { @Override public boolean equals(Object obj) { return Objects.equals(mType, ((CredentialDescription) obj).getType()) - && Objects.equals(mFlattenedRequestString, ((CredentialDescription) obj).getType()); + && Objects.equals(mFlattenedRequestString, ((CredentialDescription) obj) + .getFlattenedRequestString()); } }