/** * Verifies if an option exist in an array of options * @param options options to check * @return {@code true} if this option matches any of {@code options} */ public boolean isSet(ParsingOption[] options) { boolean matches = false; for (ParsingOption option : options) { if(this.equals(option)) { matches = true; break; } } return matches; } }
/** * Verifies if an option exist in an array of options * @param options options to check * @return {@code true} if this option matches any of {@code options} */ public boolean isSet(ParsingOption[] options) { boolean matches = false; for (ParsingOption option : options) { if(this.equals(option)) { matches = true; break; } } return matches; } }