@Test public void testRegisterIllegalCharacters() { for (char i = Character.MIN_VALUE; i < Character.MAX_VALUE; ++i) { if (!Character.isLetter(i)) { try { op.newOption(String.valueOf(i)).done(); throw new AssertionError( "Should have rejected long option " + i); } catch (IllegalArgumentException e) { } try { op.newOption(alpha).shortOption(Character.valueOf(i)) .done(); throw new AssertionError( "Should have rejected short option " + i); } catch (IllegalArgumentException e) { } } } }
public OptionBuilder newOption(E longOption) { return new OptionBuilder(longOption); }
OptionProcessor { public OptionBuilder newOption(E longOption) { return new OptionBuilder(longOption); } }
OptionProcessor { public OptionBuilder newOption(E longOption) { return new OptionBuilder(longOption); }  }
OptionProcessor { public OptionBuilder newOption(E longOption) { return new OptionBuilder(longOption); }  static OptionProcessor<T> create(); OptionBuilder newOption(E longOption); List<String> process(List<String> args); boolean has(E longOption); void set(E longOption); void unset(E longOption); void set(E longOption, String argument); String get(E longOption); int getInteger(E longOption); double getDouble(E longOption); float getFloat(E longOption); @Override String toString(); }
OptionProcessor { public OptionBuilder newOption(E longOption) { return new OptionBuilder(longOption); }  static OptionProcessor<T> create(); OptionBuilder newOption(E longOption); List<String> process(List<String> args); boolean has(E longOption); void set(E longOption); void unset(E longOption); void set(E longOption, String argument); String get(E longOption); int getInteger(E longOption); double getDouble(E longOption); float getFloat(E longOption); @Override String toString();  }