Example #1
0
 /**
  * Convenience method that returns the named feature as a int. If the named feature is not present
  * in the utterance, then this attempts to retrieve it from the voice.
  *
  * @param name the name of the feature
  * @return the value associated with the name or null if the value is not found
  * @throws ClassCastException if the associated value is not an int
  */
 public int getInt(String name) {
   if (!features.isPresent(name)) {
     return getVoice().getFeatures().getInt(name);
   } else {
     return features.getInt(name);
   }
 }