diff options
author | Skylion007 <skylion.aaron@gmail.com> | 2013-09-02 23:02:41 +0400 |
---|---|---|
committer | Skylion007 <skylion.aaron@gmail.com> | 2013-09-02 23:02:41 +0400 |
commit | 5c8ac54aba98f48bc4780286303c66fe16464980 (patch) | |
tree | 4f3605d5ea52cc94bb7190782b62ed778169c5b4 | |
parent | b14b714321cbe94e7704014e9c5249f4dceaf4ea (diff) |
Added getAllPossibleResponses method
-rw-r--r-- | src/com/darkprograms/speech/recognizer/GoogleResponse.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/com/darkprograms/speech/recognizer/GoogleResponse.java b/src/com/darkprograms/speech/recognizer/GoogleResponse.java index cfb11ca..da8b750 100644 --- a/src/com/darkprograms/speech/recognizer/GoogleResponse.java +++ b/src/com/darkprograms/speech/recognizer/GoogleResponse.java @@ -6,7 +6,7 @@ import java.util.List; /** * Class that holds the response and confidence of a Google recognizer request * - * @author Luke Kuza, Duncan Jauncey + * @author Luke Kuza, Duncan Jauncey, Aaron Gokaslan */ public class GoogleResponse { @@ -70,10 +70,20 @@ public class GoogleResponse { /** * Get other possible responses for this request. - * @return + * @return other possible responses */ public List<String> getOtherPossibleResponses() { return otherPossibleResponses; } + + /** + * Gets all returned responses for this request + * @return All returned responses + */ + public List<String> getAllPossibleResponses() { + List<String> tmp = otherPossibleResponses; + tmp.add(0,response); + return tmp; + } } |