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

Commit b14921cf authored by Omer Ozer's avatar Omer Ozer
Browse files

Adding java doc coverage for a few methods on credesc

Bug: 268195935
Test: manual
Change-Id: I0e7b5156a34cb5924c3bd607d935c4ec8e91869b
parent 6046c68a
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -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<CredentialEntry> 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<CredentialEntry> 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());
    }
}