am af0f13d1
: Add pretty-printing to SuggestedWords.Builder to help debug
* commit 'af0f13d15cd2edcb68fda9961c39dc6511edaafd': Add pretty-printing to SuggestedWords.Builder to help debug
This commit is contained in:
commit
276174e543
1 changed files with 13 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue