added contains() and indexOf() for values for faster access

This commit is contained in:
Marcel Otte 2014-12-09 19:32:29 +01:00
parent 5177c14624
commit 469a5009a8
1 changed files with 8 additions and 0 deletions

View File

@ -83,6 +83,14 @@ public class CmdOptions {
return set;
}
public boolean valuesContains(String value) {
return values.contains(value);
}
public int getIndexOf(String value) {
return values.indexOf(value);
}
public Option setSet(boolean set) {
this.set = set;
return this;