Skip to content
Snippets Groups Projects
Commit af0f13d1 authored by Jean Chalard's avatar Jean Chalard
Browse files

Add pretty-printing to SuggestedWords.Builder to help debug

Change-Id: I2f40ca40f2b452078d0f24cef72e0182e10e2269
parent ce9e4f92
No related branches found
No related tags found
No related merge requests found
......@@ -175,6 +175,19 @@ public class SuggestedWords {
public CharSequence getWord(int pos) {
return mWords.get(pos);
}
public String toString() {
// Pretty-print method to help debug
final StringBuilder sb = new StringBuilder("StringBuilder: mTypedWordValid = "
+ mTypedWordValid + " ; mHasMinimalSuggestion = " + mHasMinimalSuggestion
+ " ; mIsPunctuationSuggestions = " + mIsPunctuationSuggestions
+ " --- ");
for (CharSequence s : mWords) {
sb.append(s);
sb.append(" ; ");
}
return sb.toString();
}
}
public static class SuggestedWordInfo {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment