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

Commit 4e941090 authored by Chieu Nguyen's avatar Chieu Nguyen
Browse files

Add accessor methods for typed word info to SuggestedWords and for word

and source dictionary to SuggestedWordInfo.

Change-Id: Ic3bdf67a9edd5352f3b911f5cb72a25986e31e2c
parent 449711dd
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -111,6 +111,14 @@ public class SuggestedWords {
        return size() - /* typed word */ 1;
        return size() - /* typed word */ 1;
    }
    }


    /**
     * Get {@link SuggestedWordInfo} object for the typed word.
     * @return The {@link SuggestedWordInfo} object for the typed word.
     */
    public SuggestedWordInfo getTypedWordInfo() {
        return mTypedWordInfo;
    }

    /**
    /**
     * Get suggested word at <code>index</code>.
     * Get suggested word at <code>index</code>.
     * @param index The index of the suggested word.
     * @param index The index of the suggested word.
@@ -347,6 +355,14 @@ public class SuggestedWords {
            return mDebugString;
            return mDebugString;
        }
        }


        public String getWord() {
            return mWord;
        }

        public Dictionary getSourceDictionary() {
            return mSourceDict;
        }

        public int codePointAt(int i) {
        public int codePointAt(int i) {
            return mWord.codePointAt(i);
            return mWord.codePointAt(i);
        }
        }