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

Commit 71b3975c authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Add toString() for SearchIndexableData and SearchIndexableResource

Change-Id: Ie85e0382705e5edb4be50b32370212d470f172d9
parent 1ecde221
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
@@ -128,4 +128,44 @@ public abstract class SearchIndexableData {
        locale = Locale.getDefault();
        enabled = true;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("SearchIndexableData[context: ");
        sb.append(context);
        sb.append(", ");
        sb.append("locale: ");
        sb.append(locale);
        sb.append(", ");
        sb.append("enabled: ");
        sb.append(enabled);
        sb.append(", ");
        sb.append("rank: ");
        sb.append(rank);
        sb.append(", ");
        sb.append("key: ");
        sb.append(key);
        sb.append(", ");
        sb.append("className: ");
        sb.append(className);
        sb.append(", ");
        sb.append("packageName: ");
        sb.append(packageName);
        sb.append(", ");
        sb.append("iconResId: ");
        sb.append(iconResId);
        sb.append(", ");
        sb.append("intentAction: ");
        sb.append(intentAction);
        sb.append(", ");
        sb.append("intentTargetPackage: ");
        sb.append(intentTargetPackage);
        sb.append(", ");
        sb.append("intentTargetClass: ");
        sb.append(intentTargetClass);
        sb.append("]");

        return sb.toString();
    }
}
+13 −0
Original line number Diff line number Diff line
@@ -62,4 +62,17 @@ public class SearchIndexableResource extends SearchIndexableData {
    public SearchIndexableResource(Context context) {
        super(context);
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("SearchIndexableResource[");
        sb.append(super.toString());
        sb.append(", ");
        sb.append("xmlResId: ");
        sb.append(xmlResId);
        sb.append("]");

        return sb.toString();
    }
}
 No newline at end of file