/** * If condition is true will return the composite options. Otherwise will return an empty array * of options. */ public Option[] getOptions() { if (condition.evaluate()) { return composite.getOptions(); } return new Option[0]; }
/** * If condition is true will return the composite options. Otherwise will return an empty array * of options. */ public Option[] getOptions() { if (condition.evaluate()) { return composite.getOptions(); } return new Option[0]; }