am af0f13d1: Add pretty-printing to SuggestedWords.Builder to help debug

* commit 'af0f13d15cd2edcb68fda9961c39dc6511edaafd':
  Add pretty-printing to SuggestedWords.Builder to help debug
main
Jean Chalard 2011-10-06 23:39:26 -07:00 committed by Android Git Automerger
commit 276174e543
1 changed files with 13 additions and 0 deletions

View File

@ -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 {