no Jira, add contains method
@@ -29,6 +29,7 @@ import org.apache.uima.cas.StringArrayFS;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.StringArrayFSImpl;
import org.apache.uima.cas.impl.TypeImpl;
+import org.apache.uima.internal.util.Misc;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
@@ -194,4 +195,13 @@ public final class StringArray extends TOP implements Iterable<String>, CommonPr
return stringArray;
}
+ /**
+ * @param v the compare object
+ * @return true if v is equal to one (or more) of the array elements
+ */
+ public boolean contains(String v) {
+ return Misc.contains(theArray, v);
+ }
+
+
}
