commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1013656 [43/45] - in /websites/production/commons/content/proper/commons-cli: ./ apidocs/ apidocs/org/apache/commons/cli/ apidocs/org/apache/commons/cli/class-use/ apidocs/resources/ apidocs/src-html/org/apache/commons/cli/ jacoco-aggregat...
Date Thu, 08 Jun 2017 17:47:21 GMT
Modified: websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Option.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Option.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Option.html Thu Jun  8 17:47:18 2017
@@ -45,7 +45,7 @@
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment"> * @see org.apache.commons.cli.Options</em>
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment"> * @see org.apache.commons.cli.CommandLine</em>
 <a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment"> * @version $Id: Option.java 1756753 2016-08-18 10:18:43Z britter $</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment"> * @version $Id$</em>
 <a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment"> */</em>
 <a class="jxr_linenumber" name="L42" href="#L42">42</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a> <strong class="jxr_keyword">implements</strong> Cloneable, Serializable
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>  {
@@ -116,7 +116,7 @@
 <a class="jxr_linenumber" name="L108" href="#L108">108</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if there are any non valid</em>
 <a class="jxr_linenumber" name="L109" href="#L109">109</a> <em class="jxr_javadoccomment">     * Option characters in &lt;code&gt;opt&lt;/code&gt;.</em>
 <a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L111" href="#L111">111</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a>(String opt, String description) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a>(<strong class="jxr_keyword">final</strong> String opt, <strong class="jxr_keyword">final</strong> String description) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
 <a class="jxr_linenumber" name="L112" href="#L112">112</a>     {
 <a class="jxr_linenumber" name="L113" href="#L113">113</a>         <strong class="jxr_keyword">this</strong>(opt, <strong class="jxr_keyword">null</strong>, false, description);
 <a class="jxr_linenumber" name="L114" href="#L114">114</a>     }
@@ -131,7 +131,7 @@
 <a class="jxr_linenumber" name="L123" href="#L123">123</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if there are any non valid</em>
 <a class="jxr_linenumber" name="L124" href="#L124">124</a> <em class="jxr_javadoccomment">     * Option characters in &lt;code&gt;opt&lt;/code&gt;.</em>
 <a class="jxr_linenumber" name="L125" href="#L125">125</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L126" href="#L126">126</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a>(String opt, <strong class="jxr_keyword">boolean</strong> hasArg, String description) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a>(<strong class="jxr_keyword">final</strong> String opt, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> hasArg, <strong class="jxr_keyword">final</strong> String description) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
 <a class="jxr_linenumber" name="L127" href="#L127">127</a>     {
 <a class="jxr_linenumber" name="L128" href="#L128">128</a>         <strong class="jxr_keyword">this</strong>(opt, <strong class="jxr_keyword">null</strong>, hasArg, description);
 <a class="jxr_linenumber" name="L129" href="#L129">129</a>     }
@@ -147,7 +147,7 @@
 <a class="jxr_linenumber" name="L139" href="#L139">139</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if there are any non valid</em>
 <a class="jxr_linenumber" name="L140" href="#L140">140</a> <em class="jxr_javadoccomment">     * Option characters in &lt;code&gt;opt&lt;/code&gt;.</em>
 <a class="jxr_linenumber" name="L141" href="#L141">141</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L142" href="#L142">142</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a>(String opt, String longOpt, <strong class="jxr_keyword">boolean</strong> hasArg, String description)
+<a class="jxr_linenumber" name="L142" href="#L142">142</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a>(<strong class="jxr_keyword">final</strong> String opt, <strong class="jxr_keyword">final</strong> String longOpt, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> hasArg, <strong class="jxr_keyword">final</strong> String description)
 <a class="jxr_linenumber" name="L143" href="#L143">143</a>            <strong class="jxr_keyword">throws</strong> IllegalArgumentException
 <a class="jxr_linenumber" name="L144" href="#L144">144</a>     {
 <a class="jxr_linenumber" name="L145" href="#L145">145</a>         <em class="jxr_comment">// ensure that the option is valid</em>
@@ -223,7 +223,7 @@
 <a class="jxr_linenumber" name="L215" href="#L215">215</a> <em class="jxr_javadoccomment">     * @deprecated since 1.3, use {@link #setType(Class)} instead</em>
 <a class="jxr_linenumber" name="L216" href="#L216">216</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L217" href="#L217">217</a>     @Deprecated
-<a class="jxr_linenumber" name="L218" href="#L218">218</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setType(Object type)
+<a class="jxr_linenumber" name="L218" href="#L218">218</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setType(<strong class="jxr_keyword">final</strong> Object type)
 <a class="jxr_linenumber" name="L219" href="#L219">219</a>     {
 <a class="jxr_linenumber" name="L220" href="#L220">220</a>         setType((Class&lt;?&gt;) type);
 <a class="jxr_linenumber" name="L221" href="#L221">221</a>     }
@@ -234,7 +234,7 @@
 <a class="jxr_linenumber" name="L226" href="#L226">226</a> <em class="jxr_javadoccomment">     * @param type the type of this Option</em>
 <a class="jxr_linenumber" name="L227" href="#L227">227</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
 <a class="jxr_linenumber" name="L228" href="#L228">228</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L229" href="#L229">229</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setType(Class&lt;?&gt; type)
+<a class="jxr_linenumber" name="L229" href="#L229">229</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setType(<strong class="jxr_keyword">final</strong> Class&lt;?&gt; type)
 <a class="jxr_linenumber" name="L230" href="#L230">230</a>     {
 <a class="jxr_linenumber" name="L231" href="#L231">231</a>         <strong class="jxr_keyword">this</strong>.type = type;
 <a class="jxr_linenumber" name="L232" href="#L232">232</a>     }
@@ -254,7 +254,7 @@
 <a class="jxr_linenumber" name="L246" href="#L246">246</a> <em class="jxr_javadoccomment">     *</em>
 <a class="jxr_linenumber" name="L247" href="#L247">247</a> <em class="jxr_javadoccomment">     * @param longOpt the long name of this Option</em>
 <a class="jxr_linenumber" name="L248" href="#L248">248</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L249" href="#L249">249</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setLongOpt(String longOpt)
+<a class="jxr_linenumber" name="L249" href="#L249">249</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setLongOpt(<strong class="jxr_keyword">final</strong> String longOpt)
 <a class="jxr_linenumber" name="L250" href="#L250">250</a>     {
 <a class="jxr_linenumber" name="L251" href="#L251">251</a>         <strong class="jxr_keyword">this</strong>.longOpt = longOpt;
 <a class="jxr_linenumber" name="L252" href="#L252">252</a>     }
@@ -265,7 +265,7 @@
 <a class="jxr_linenumber" name="L257" href="#L257">257</a> <em class="jxr_javadoccomment">     * @param optionalArg specifies whether the Option can have</em>
 <a class="jxr_linenumber" name="L258" href="#L258">258</a> <em class="jxr_javadoccomment">     * an optional argument.</em>
 <a class="jxr_linenumber" name="L259" href="#L259">259</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L260" href="#L260">260</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setOptionalArg(<strong class="jxr_keyword">boolean</strong> optionalArg)
+<a class="jxr_linenumber" name="L260" href="#L260">260</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setOptionalArg(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> optionalArg)
 <a class="jxr_linenumber" name="L261" href="#L261">261</a>     {
 <a class="jxr_linenumber" name="L262" href="#L262">262</a>         <strong class="jxr_keyword">this</strong>.optionalArg = optionalArg;
 <a class="jxr_linenumber" name="L263" href="#L263">263</a>     }
@@ -314,7 +314,7 @@
 <a class="jxr_linenumber" name="L306" href="#L306">306</a> <em class="jxr_javadoccomment">     * @param description The description of this option</em>
 <a class="jxr_linenumber" name="L307" href="#L307">307</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L308" href="#L308">308</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L309" href="#L309">309</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setDescription(String description)
+<a class="jxr_linenumber" name="L309" href="#L309">309</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setDescription(<strong class="jxr_keyword">final</strong> String description)
 <a class="jxr_linenumber" name="L310" href="#L310">310</a>     {
 <a class="jxr_linenumber" name="L311" href="#L311">311</a>         <strong class="jxr_keyword">this</strong>.description = description;
 <a class="jxr_linenumber" name="L312" href="#L312">312</a>     }
@@ -334,7 +334,7 @@
 <a class="jxr_linenumber" name="L326" href="#L326">326</a> <em class="jxr_javadoccomment">     *</em>
 <a class="jxr_linenumber" name="L327" href="#L327">327</a> <em class="jxr_javadoccomment">     * @param required specifies whether this Option is mandatory</em>
 <a class="jxr_linenumber" name="L328" href="#L328">328</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L329" href="#L329">329</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setRequired(<strong class="jxr_keyword">boolean</strong> required)
+<a class="jxr_linenumber" name="L329" href="#L329">329</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setRequired(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> required)
 <a class="jxr_linenumber" name="L330" href="#L330">330</a>     {
 <a class="jxr_linenumber" name="L331" href="#L331">331</a>         <strong class="jxr_keyword">this</strong>.required = required;
 <a class="jxr_linenumber" name="L332" href="#L332">332</a>     }
@@ -344,7 +344,7 @@
 <a class="jxr_linenumber" name="L336" href="#L336">336</a> <em class="jxr_javadoccomment">     *</em>
 <a class="jxr_linenumber" name="L337" href="#L337">337</a> <em class="jxr_javadoccomment">     * @param argName the display name for the argument value.</em>
 <a class="jxr_linenumber" name="L338" href="#L338">338</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L339" href="#L339">339</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setArgName(String argName)
+<a class="jxr_linenumber" name="L339" href="#L339">339</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setArgName(<strong class="jxr_keyword">final</strong> String argName)
 <a class="jxr_linenumber" name="L340" href="#L340">340</a>     {
 <a class="jxr_linenumber" name="L341" href="#L341">341</a>         <strong class="jxr_keyword">this</strong>.argName = argName;
 <a class="jxr_linenumber" name="L342" href="#L342">342</a>     }
@@ -384,7 +384,7 @@
 <a class="jxr_linenumber" name="L376" href="#L376">376</a> <em class="jxr_javadoccomment">     *</em>
 <a class="jxr_linenumber" name="L377" href="#L377">377</a> <em class="jxr_javadoccomment">     * @param num the number of argument values</em>
 <a class="jxr_linenumber" name="L378" href="#L378">378</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L379" href="#L379">379</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setArgs(<strong class="jxr_keyword">int</strong> num)
+<a class="jxr_linenumber" name="L379" href="#L379">379</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setArgs(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> num)
 <a class="jxr_linenumber" name="L380" href="#L380">380</a>     {
 <a class="jxr_linenumber" name="L381" href="#L381">381</a>         <strong class="jxr_keyword">this</strong>.numberOfArgs = num;
 <a class="jxr_linenumber" name="L382" href="#L382">382</a>     }
@@ -395,7 +395,7 @@
 <a class="jxr_linenumber" name="L387" href="#L387">387</a> <em class="jxr_javadoccomment">     *</em>
 <a class="jxr_linenumber" name="L388" href="#L388">388</a> <em class="jxr_javadoccomment">     * @param sep The value separator.</em>
 <a class="jxr_linenumber" name="L389" href="#L389">389</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L390" href="#L390">390</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setValueSeparator(<strong class="jxr_keyword">char</strong> sep)
+<a class="jxr_linenumber" name="L390" href="#L390">390</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setValueSeparator(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> sep)
 <a class="jxr_linenumber" name="L391" href="#L391">391</a>     {
 <a class="jxr_linenumber" name="L392" href="#L392">392</a>         <strong class="jxr_keyword">this</strong>.valuesep = sep;
 <a class="jxr_linenumber" name="L393" href="#L393">393</a>     }
@@ -445,7 +445,7 @@
 <a class="jxr_linenumber" name="L437" href="#L437">437</a> <em class="jxr_javadoccomment">     * </em>
 <a class="jxr_linenumber" name="L438" href="#L438">438</a> <em class="jxr_javadoccomment">     * @param value is a/the value of this Option</em>
 <a class="jxr_linenumber" name="L439" href="#L439">439</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L440" href="#L440">440</a>     <strong class="jxr_keyword">void</strong> addValueForProcessing(String value)
+<a class="jxr_linenumber" name="L440" href="#L440">440</a>     <strong class="jxr_keyword">void</strong> addValueForProcessing(<strong class="jxr_keyword">final</strong> String value)
 <a class="jxr_linenumber" name="L441" href="#L441">441</a>     {
 <a class="jxr_linenumber" name="L442" href="#L442">442</a>         <strong class="jxr_keyword">if</strong> (numberOfArgs == UNINITIALIZED)
 <a class="jxr_linenumber" name="L443" href="#L443">443</a>         {
@@ -471,7 +471,7 @@
 <a class="jxr_linenumber" name="L463" href="#L463">463</a>         <strong class="jxr_keyword">if</strong> (hasValueSeparator())
 <a class="jxr_linenumber" name="L464" href="#L464">464</a>         {
 <a class="jxr_linenumber" name="L465" href="#L465">465</a>             <em class="jxr_comment">// get the separator character</em>
-<a class="jxr_linenumber" name="L466" href="#L466">466</a>             <strong class="jxr_keyword">char</strong> sep = getValueSeparator();
+<a class="jxr_linenumber" name="L466" href="#L466">466</a>             <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> sep = getValueSeparator();
 <a class="jxr_linenumber" name="L467" href="#L467">467</a> 
 <a class="jxr_linenumber" name="L468" href="#L468">468</a>             <em class="jxr_comment">// store the index for the value separator</em>
 <a class="jxr_linenumber" name="L469" href="#L469">469</a>             <strong class="jxr_keyword">int</strong> index = value.indexOf(sep);
@@ -509,7 +509,7 @@
 <a class="jxr_linenumber" name="L501" href="#L501">501</a> <em class="jxr_javadoccomment">     *</em>
 <a class="jxr_linenumber" name="L502" href="#L502">502</a> <em class="jxr_javadoccomment">     * @since 1.0.1</em>
 <a class="jxr_linenumber" name="L503" href="#L503">503</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L504" href="#L504">504</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> add(String value)
+<a class="jxr_linenumber" name="L504" href="#L504">504</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> add(<strong class="jxr_keyword">final</strong> String value)
 <a class="jxr_linenumber" name="L505" href="#L505">505</a>     {
 <a class="jxr_linenumber" name="L506" href="#L506">506</a>         <strong class="jxr_keyword">if</strong> (!acceptsArg())
 <a class="jxr_linenumber" name="L507" href="#L507">507</a>         {
@@ -544,7 +544,7 @@
 <a class="jxr_linenumber" name="L536" href="#L536">536</a> <em class="jxr_javadoccomment">     * @throws IndexOutOfBoundsException if index is less than 1</em>
 <a class="jxr_linenumber" name="L537" href="#L537">537</a> <em class="jxr_javadoccomment">     * or greater than the number of the values for this Option.</em>
 <a class="jxr_linenumber" name="L538" href="#L538">538</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L539" href="#L539">539</a>     <strong class="jxr_keyword">public</strong> String getValue(<strong class="jxr_keyword">int</strong> index) <strong class="jxr_keyword">throws</strong> IndexOutOfBoundsException
+<a class="jxr_linenumber" name="L539" href="#L539">539</a>     <strong class="jxr_keyword">public</strong> String getValue(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> index) <strong class="jxr_keyword">throws</strong> IndexOutOfBoundsException
 <a class="jxr_linenumber" name="L540" href="#L540">540</a>     {
 <a class="jxr_linenumber" name="L541" href="#L541">541</a>         <strong class="jxr_keyword">return</strong> hasNoValues() ? <strong class="jxr_keyword">null</strong> : values.get(index);
 <a class="jxr_linenumber" name="L542" href="#L542">542</a>     }
@@ -559,9 +559,9 @@
 <a class="jxr_linenumber" name="L551" href="#L551">551</a> <em class="jxr_javadoccomment">     * @return the value/first value of this Option or the </em>
 <a class="jxr_linenumber" name="L552" href="#L552">552</a> <em class="jxr_javadoccomment">     * &lt;code&gt;defaultValue&lt;/code&gt; if there are no values.</em>
 <a class="jxr_linenumber" name="L553" href="#L553">553</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L554" href="#L554">554</a>     <strong class="jxr_keyword">public</strong> String getValue(String defaultValue)
+<a class="jxr_linenumber" name="L554" href="#L554">554</a>     <strong class="jxr_keyword">public</strong> String getValue(<strong class="jxr_keyword">final</strong> String defaultValue)
 <a class="jxr_linenumber" name="L555" href="#L555">555</a>     {
-<a class="jxr_linenumber" name="L556" href="#L556">556</a>         String value = getValue();
+<a class="jxr_linenumber" name="L556" href="#L556">556</a>         <strong class="jxr_keyword">final</strong> String value = getValue();
 <a class="jxr_linenumber" name="L557" href="#L557">557</a> 
 <a class="jxr_linenumber" name="L558" href="#L558">558</a>         <strong class="jxr_keyword">return</strong> (value != <strong class="jxr_keyword">null</strong>) ? value : defaultValue;
 <a class="jxr_linenumber" name="L559" href="#L559">559</a>     }
@@ -595,7 +595,7 @@
 <a class="jxr_linenumber" name="L587" href="#L587">587</a>     @Override
 <a class="jxr_linenumber" name="L588" href="#L588">588</a>     <strong class="jxr_keyword">public</strong> String toString()
 <a class="jxr_linenumber" name="L589" href="#L589">589</a>     {
-<a class="jxr_linenumber" name="L590" href="#L590">590</a>         StringBuilder buf = <strong class="jxr_keyword">new</strong> StringBuilder().append(<span class="jxr_string">"[ option: "</span>);
+<a class="jxr_linenumber" name="L590" href="#L590">590</a>         <strong class="jxr_keyword">final</strong> StringBuilder buf = <strong class="jxr_keyword">new</strong> StringBuilder().append(<span class="jxr_string">"[ option: "</span>);
 <a class="jxr_linenumber" name="L591" href="#L591">591</a> 
 <a class="jxr_linenumber" name="L592" href="#L592">592</a>         buf.append(opt);
 <a class="jxr_linenumber" name="L593" href="#L593">593</a> 
@@ -638,7 +638,7 @@
 <a class="jxr_linenumber" name="L630" href="#L630">630</a>     }
 <a class="jxr_linenumber" name="L631" href="#L631">631</a> 
 <a class="jxr_linenumber" name="L632" href="#L632">632</a>     @Override
-<a class="jxr_linenumber" name="L633" href="#L633">633</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(Object o)
+<a class="jxr_linenumber" name="L633" href="#L633">633</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong> Object o)
 <a class="jxr_linenumber" name="L634" href="#L634">634</a>     {
 <a class="jxr_linenumber" name="L635" href="#L635">635</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong> == o)
 <a class="jxr_linenumber" name="L636" href="#L636">636</a>         {
@@ -649,378 +649,377 @@
 <a class="jxr_linenumber" name="L641" href="#L641">641</a>             <strong class="jxr_keyword">return</strong> false;
 <a class="jxr_linenumber" name="L642" href="#L642">642</a>         }
 <a class="jxr_linenumber" name="L643" href="#L643">643</a> 
-<a class="jxr_linenumber" name="L644" href="#L644">644</a>         <a href="../../../../org/apache/commons/cli/Option.html">Option</a> option = (Option) o;
+<a class="jxr_linenumber" name="L644" href="#L644">644</a>         <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a> option = (Option) o;
 <a class="jxr_linenumber" name="L645" href="#L645">645</a> 
-<a class="jxr_linenumber" name="L646" href="#L646">646</a> 
-<a class="jxr_linenumber" name="L647" href="#L647">647</a>         <strong class="jxr_keyword">if</strong> (opt != <strong class="jxr_keyword">null</strong> ? !opt.equals(option.opt) : option.opt != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="L648" href="#L648">648</a>         {
-<a class="jxr_linenumber" name="L649" href="#L649">649</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L650" href="#L650">650</a>         }
-<a class="jxr_linenumber" name="L651" href="#L651">651</a>         <strong class="jxr_keyword">if</strong> (longOpt != <strong class="jxr_keyword">null</strong> ? !longOpt.equals(option.longOpt) : option.longOpt != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="L652" href="#L652">652</a>         {
-<a class="jxr_linenumber" name="L653" href="#L653">653</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L654" href="#L654">654</a>         }
-<a class="jxr_linenumber" name="L655" href="#L655">655</a> 
-<a class="jxr_linenumber" name="L656" href="#L656">656</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L657" href="#L657">657</a>     }
-<a class="jxr_linenumber" name="L658" href="#L658">658</a> 
-<a class="jxr_linenumber" name="L659" href="#L659">659</a>     @Override
-<a class="jxr_linenumber" name="L660" href="#L660">660</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode()
-<a class="jxr_linenumber" name="L661" href="#L661">661</a>     {
-<a class="jxr_linenumber" name="L662" href="#L662">662</a>         <strong class="jxr_keyword">int</strong> result;
-<a class="jxr_linenumber" name="L663" href="#L663">663</a>         result = opt != <strong class="jxr_keyword">null</strong> ? opt.hashCode() : 0;
-<a class="jxr_linenumber" name="L664" href="#L664">664</a>         result = 31 * result + (longOpt != <strong class="jxr_keyword">null</strong> ? longOpt.hashCode() : 0);
-<a class="jxr_linenumber" name="L665" href="#L665">665</a>         <strong class="jxr_keyword">return</strong> result;
-<a class="jxr_linenumber" name="L666" href="#L666">666</a>     }
-<a class="jxr_linenumber" name="L667" href="#L667">667</a> 
-<a class="jxr_linenumber" name="L668" href="#L668">668</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L669" href="#L669">669</a> <em class="jxr_javadoccomment">     * A rather odd clone method - due to incorrect code in 1.0 it is public </em>
-<a class="jxr_linenumber" name="L670" href="#L670">670</a> <em class="jxr_javadoccomment">     * and in 1.1 rather than throwing a CloneNotSupportedException it throws </em>
-<a class="jxr_linenumber" name="L671" href="#L671">671</a> <em class="jxr_javadoccomment">     * a RuntimeException so as to maintain backwards compat at the API level. </em>
-<a class="jxr_linenumber" name="L672" href="#L672">672</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L673" href="#L673">673</a> <em class="jxr_javadoccomment">     * After calling this method, it is very likely you will want to call </em>
-<a class="jxr_linenumber" name="L674" href="#L674">674</a> <em class="jxr_javadoccomment">     * clearValues(). </em>
-<a class="jxr_linenumber" name="L675" href="#L675">675</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L676" href="#L676">676</a> <em class="jxr_javadoccomment">     * @return a clone of this Option instance</em>
-<a class="jxr_linenumber" name="L677" href="#L677">677</a> <em class="jxr_javadoccomment">     * @throws RuntimeException if a {@link CloneNotSupportedException} has been thrown</em>
-<a class="jxr_linenumber" name="L678" href="#L678">678</a> <em class="jxr_javadoccomment">     * by {@code super.clone()}</em>
-<a class="jxr_linenumber" name="L679" href="#L679">679</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L680" href="#L680">680</a>     @Override
-<a class="jxr_linenumber" name="L681" href="#L681">681</a>     <strong class="jxr_keyword">public</strong> Object clone()
-<a class="jxr_linenumber" name="L682" href="#L682">682</a>     {
-<a class="jxr_linenumber" name="L683" href="#L683">683</a>         <strong class="jxr_keyword">try</strong>
-<a class="jxr_linenumber" name="L684" href="#L684">684</a>         {
-<a class="jxr_linenumber" name="L685" href="#L685">685</a>             <a href="../../../../org/apache/commons/cli/Option.html">Option</a> option = (Option) <strong class="jxr_keyword">super</strong>.clone();
-<a class="jxr_linenumber" name="L686" href="#L686">686</a>             option.values = <strong class="jxr_keyword">new</strong> ArrayList&lt;String&gt;(values);
-<a class="jxr_linenumber" name="L687" href="#L687">687</a>             <strong class="jxr_keyword">return</strong> option;
-<a class="jxr_linenumber" name="L688" href="#L688">688</a>         }
-<a class="jxr_linenumber" name="L689" href="#L689">689</a>         <strong class="jxr_keyword">catch</strong> (CloneNotSupportedException cnse)
-<a class="jxr_linenumber" name="L690" href="#L690">690</a>         {
-<a class="jxr_linenumber" name="L691" href="#L691">691</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"A CloneNotSupportedException was thrown: "</span> + cnse.getMessage());
-<a class="jxr_linenumber" name="L692" href="#L692">692</a>         }
-<a class="jxr_linenumber" name="L693" href="#L693">693</a>     }
-<a class="jxr_linenumber" name="L694" href="#L694">694</a> 
-<a class="jxr_linenumber" name="L695" href="#L695">695</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L696" href="#L696">696</a> <em class="jxr_javadoccomment">     * Clear the Option values. After a parse is complete, these are left with</em>
-<a class="jxr_linenumber" name="L697" href="#L697">697</a> <em class="jxr_javadoccomment">     * data in them and they need clearing if another parse is done.</em>
-<a class="jxr_linenumber" name="L698" href="#L698">698</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L699" href="#L699">699</a> <em class="jxr_javadoccomment">     * See: &lt;a href="https://issues.apache.org/jira/browse/CLI-71"&gt;CLI-71&lt;/a&gt;</em>
-<a class="jxr_linenumber" name="L700" href="#L700">700</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L701" href="#L701">701</a>     <strong class="jxr_keyword">void</strong> clearValues()
-<a class="jxr_linenumber" name="L702" href="#L702">702</a>     {
-<a class="jxr_linenumber" name="L703" href="#L703">703</a>         values.clear();
-<a class="jxr_linenumber" name="L704" href="#L704">704</a>     }
-<a class="jxr_linenumber" name="L705" href="#L705">705</a> 
-<a class="jxr_linenumber" name="L706" href="#L706">706</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L707" href="#L707">707</a> <em class="jxr_javadoccomment">     * This method is not intended to be used. It was a piece of internal </em>
-<a class="jxr_linenumber" name="L708" href="#L708">708</a> <em class="jxr_javadoccomment">     * API that was made public in 1.0. It currently throws an UnsupportedOperationException.</em>
-<a class="jxr_linenumber" name="L709" href="#L709">709</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L710" href="#L710">710</a> <em class="jxr_javadoccomment">     * @param value the value to add</em>
-<a class="jxr_linenumber" name="L711" href="#L711">711</a> <em class="jxr_javadoccomment">     * @return always throws an {@link UnsupportedOperationException}</em>
-<a class="jxr_linenumber" name="L712" href="#L712">712</a> <em class="jxr_javadoccomment">     * @throws UnsupportedOperationException always</em>
-<a class="jxr_linenumber" name="L713" href="#L713">713</a> <em class="jxr_javadoccomment">     * @deprecated</em>
-<a class="jxr_linenumber" name="L714" href="#L714">714</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L715" href="#L715">715</a>     @Deprecated
-<a class="jxr_linenumber" name="L716" href="#L716">716</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> addValue(String value)
-<a class="jxr_linenumber" name="L717" href="#L717">717</a>     {
-<a class="jxr_linenumber" name="L718" href="#L718">718</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> UnsupportedOperationException(<span class="jxr_string">"The addValue method is not intended for client use. "</span>
-<a class="jxr_linenumber" name="L719" href="#L719">719</a>                 + <span class="jxr_string">"Subclasses should use the addValueForProcessing method instead. "</span>);
-<a class="jxr_linenumber" name="L720" href="#L720">720</a>     }
-<a class="jxr_linenumber" name="L721" href="#L721">721</a> 
-<a class="jxr_linenumber" name="L722" href="#L722">722</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L723" href="#L723">723</a> <em class="jxr_javadoccomment">     * Tells if the option can accept more arguments.</em>
-<a class="jxr_linenumber" name="L724" href="#L724">724</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L725" href="#L725">725</a> <em class="jxr_javadoccomment">     * @return false if the maximum number of arguments is reached</em>
-<a class="jxr_linenumber" name="L726" href="#L726">726</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L727" href="#L727">727</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L728" href="#L728">728</a>     <strong class="jxr_keyword">boolean</strong> acceptsArg()
-<a class="jxr_linenumber" name="L729" href="#L729">729</a>     {
-<a class="jxr_linenumber" name="L730" href="#L730">730</a>         <strong class="jxr_keyword">return</strong> (hasArg() || hasArgs() || hasOptionalArg()) &amp;&amp; (numberOfArgs &lt;= 0 || values.size() &lt; numberOfArgs);
-<a class="jxr_linenumber" name="L731" href="#L731">731</a>     }
-<a class="jxr_linenumber" name="L732" href="#L732">732</a> 
-<a class="jxr_linenumber" name="L733" href="#L733">733</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L734" href="#L734">734</a> <em class="jxr_javadoccomment">     * Tells if the option requires more arguments to be valid.</em>
-<a class="jxr_linenumber" name="L735" href="#L735">735</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L736" href="#L736">736</a> <em class="jxr_javadoccomment">     * @return false if the option doesn't require more arguments</em>
-<a class="jxr_linenumber" name="L737" href="#L737">737</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L738" href="#L738">738</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L739" href="#L739">739</a>     <strong class="jxr_keyword">boolean</strong> requiresArg()
-<a class="jxr_linenumber" name="L740" href="#L740">740</a>     {
-<a class="jxr_linenumber" name="L741" href="#L741">741</a>         <strong class="jxr_keyword">if</strong> (optionalArg)
-<a class="jxr_linenumber" name="L742" href="#L742">742</a>         {
-<a class="jxr_linenumber" name="L743" href="#L743">743</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L744" href="#L744">744</a>         }
-<a class="jxr_linenumber" name="L745" href="#L745">745</a>         <strong class="jxr_keyword">if</strong> (numberOfArgs == UNLIMITED_VALUES)
-<a class="jxr_linenumber" name="L746" href="#L746">746</a>         {
-<a class="jxr_linenumber" name="L747" href="#L747">747</a>             <strong class="jxr_keyword">return</strong> values.isEmpty();
-<a class="jxr_linenumber" name="L748" href="#L748">748</a>         }
-<a class="jxr_linenumber" name="L749" href="#L749">749</a>         <strong class="jxr_keyword">return</strong> acceptsArg();
-<a class="jxr_linenumber" name="L750" href="#L750">750</a>     }
-<a class="jxr_linenumber" name="L751" href="#L751">751</a>     
-<a class="jxr_linenumber" name="L752" href="#L752">752</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L753" href="#L753">753</a> <em class="jxr_javadoccomment">     * Returns a {@link Builder} to create an {@link Option} using descriptive</em>
-<a class="jxr_linenumber" name="L754" href="#L754">754</a> <em class="jxr_javadoccomment">     * methods.  </em>
-<a class="jxr_linenumber" name="L755" href="#L755">755</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L756" href="#L756">756</a> <em class="jxr_javadoccomment">     * @return a new {@link Builder} instance</em>
-<a class="jxr_linenumber" name="L757" href="#L757">757</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L758" href="#L758">758</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L759" href="#L759">759</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> builder()
-<a class="jxr_linenumber" name="L760" href="#L760">760</a>     {
-<a class="jxr_linenumber" name="L761" href="#L761">761</a>         <strong class="jxr_keyword">return</strong> builder(<strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="L762" href="#L762">762</a>     }
-<a class="jxr_linenumber" name="L763" href="#L763">763</a>     
-<a class="jxr_linenumber" name="L764" href="#L764">764</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L765" href="#L765">765</a> <em class="jxr_javadoccomment">     * Returns a {@link Builder} to create an {@link Option} using descriptive</em>
-<a class="jxr_linenumber" name="L766" href="#L766">766</a> <em class="jxr_javadoccomment">     * methods.  </em>
-<a class="jxr_linenumber" name="L767" href="#L767">767</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L768" href="#L768">768</a> <em class="jxr_javadoccomment">     * @param opt short representation of the option</em>
-<a class="jxr_linenumber" name="L769" href="#L769">769</a> <em class="jxr_javadoccomment">     * @return a new {@link Builder} instance</em>
-<a class="jxr_linenumber" name="L770" href="#L770">770</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if there are any non valid Option characters in {@code opt}</em>
-<a class="jxr_linenumber" name="L771" href="#L771">771</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L772" href="#L772">772</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L773" href="#L773">773</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> builder(<strong class="jxr_keyword">final</strong> String opt)
-<a class="jxr_linenumber" name="L774" href="#L774">774</a>     {
-<a class="jxr_linenumber" name="L775" href="#L775">775</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a>(opt);
-<a class="jxr_linenumber" name="L776" href="#L776">776</a>     }
-<a class="jxr_linenumber" name="L777" href="#L777">777</a>     
-<a class="jxr_linenumber" name="L778" href="#L778">778</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L779" href="#L779">779</a> <em class="jxr_javadoccomment">     * A nested builder class to create &lt;code&gt;Option&lt;/code&gt; instances</em>
-<a class="jxr_linenumber" name="L780" href="#L780">780</a> <em class="jxr_javadoccomment">     * using descriptive methods.</em>
-<a class="jxr_linenumber" name="L781" href="#L781">781</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L782" href="#L782">782</a> <em class="jxr_javadoccomment">     * Example usage:</em>
-<a class="jxr_linenumber" name="L783" href="#L783">783</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="L784" href="#L784">784</a> <em class="jxr_javadoccomment">     * Option option = Option.builder("a")</em>
-<a class="jxr_linenumber" name="L785" href="#L785">785</a> <em class="jxr_javadoccomment">     *     .required(true)</em>
-<a class="jxr_linenumber" name="L786" href="#L786">786</a> <em class="jxr_javadoccomment">     *     .longOpt("arg-name")</em>
-<a class="jxr_linenumber" name="L787" href="#L787">787</a> <em class="jxr_javadoccomment">     *     .build();</em>
-<a class="jxr_linenumber" name="L788" href="#L788">788</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="L789" href="#L789">789</a> <em class="jxr_javadoccomment">     * </em>
-<a class="jxr_linenumber" name="L790" href="#L790">790</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
-<a class="jxr_linenumber" name="L791" href="#L791">791</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L792" href="#L792">792</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> 
-<a class="jxr_linenumber" name="L793" href="#L793">793</a>     {
-<a class="jxr_linenumber" name="L794" href="#L794">794</a>         <em class="jxr_javadoccomment">/** the name of the option */</em>
-<a class="jxr_linenumber" name="L795" href="#L795">795</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String opt;
-<a class="jxr_linenumber" name="L796" href="#L796">796</a> 
-<a class="jxr_linenumber" name="L797" href="#L797">797</a>         <em class="jxr_javadoccomment">/** description of the option */</em>
-<a class="jxr_linenumber" name="L798" href="#L798">798</a>         <strong class="jxr_keyword">private</strong> String description;
-<a class="jxr_linenumber" name="L799" href="#L799">799</a> 
-<a class="jxr_linenumber" name="L800" href="#L800">800</a>         <em class="jxr_javadoccomment">/** the long representation of the option */</em>
-<a class="jxr_linenumber" name="L801" href="#L801">801</a>         <strong class="jxr_keyword">private</strong> String longOpt;
-<a class="jxr_linenumber" name="L802" href="#L802">802</a> 
-<a class="jxr_linenumber" name="L803" href="#L803">803</a>         <em class="jxr_javadoccomment">/** the name of the argument for this option */</em>
-<a class="jxr_linenumber" name="L804" href="#L804">804</a>         <strong class="jxr_keyword">private</strong> String argName;
-<a class="jxr_linenumber" name="L805" href="#L805">805</a> 
-<a class="jxr_linenumber" name="L806" href="#L806">806</a>         <em class="jxr_javadoccomment">/** specifies whether this option is required to be present */</em>
-<a class="jxr_linenumber" name="L807" href="#L807">807</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> required;
-<a class="jxr_linenumber" name="L808" href="#L808">808</a> 
-<a class="jxr_linenumber" name="L809" href="#L809">809</a>         <em class="jxr_javadoccomment">/** specifies whether the argument value of this Option is optional */</em>
-<a class="jxr_linenumber" name="L810" href="#L810">810</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> optionalArg;
-<a class="jxr_linenumber" name="L811" href="#L811">811</a> 
-<a class="jxr_linenumber" name="L812" href="#L812">812</a>         <em class="jxr_javadoccomment">/** the number of argument values this option can have */</em>
-<a class="jxr_linenumber" name="L813" href="#L813">813</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> numberOfArgs = UNINITIALIZED;
-<a class="jxr_linenumber" name="L814" href="#L814">814</a> 
-<a class="jxr_linenumber" name="L815" href="#L815">815</a>         <em class="jxr_javadoccomment">/** the type of this Option */</em>
-<a class="jxr_linenumber" name="L816" href="#L816">816</a>         <strong class="jxr_keyword">private</strong> Class&lt;?&gt; type = String.<strong class="jxr_keyword">class</strong>;
-<a class="jxr_linenumber" name="L817" href="#L817">817</a> 
-<a class="jxr_linenumber" name="L818" href="#L818">818</a>         <em class="jxr_javadoccomment">/** the character that is the value separator */</em>
-<a class="jxr_linenumber" name="L819" href="#L819">819</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">char</strong> valuesep;
-<a class="jxr_linenumber" name="L820" href="#L820">820</a> 
-<a class="jxr_linenumber" name="L821" href="#L821">821</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L822" href="#L822">822</a> <em class="jxr_javadoccomment">         * Constructs a new &lt;code&gt;Builder&lt;/code&gt; with the minimum</em>
-<a class="jxr_linenumber" name="L823" href="#L823">823</a> <em class="jxr_javadoccomment">         * required parameters for an &lt;code&gt;Option&lt;/code&gt; instance.</em>
-<a class="jxr_linenumber" name="L824" href="#L824">824</a> <em class="jxr_javadoccomment">         * </em>
-<a class="jxr_linenumber" name="L825" href="#L825">825</a> <em class="jxr_javadoccomment">         * @param opt short representation of the option</em>
-<a class="jxr_linenumber" name="L826" href="#L826">826</a> <em class="jxr_javadoccomment">         * @throws IllegalArgumentException if there are any non valid Option characters in {@code opt}</em>
-<a class="jxr_linenumber" name="L827" href="#L827">827</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L828" href="#L828">828</a>         <strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a>(<strong class="jxr_keyword">final</strong> String opt) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
-<a class="jxr_linenumber" name="L829" href="#L829">829</a>         {
-<a class="jxr_linenumber" name="L830" href="#L830">830</a>             OptionValidator.validateOption(opt);
-<a class="jxr_linenumber" name="L831" href="#L831">831</a>             <strong class="jxr_keyword">this</strong>.opt = opt;
-<a class="jxr_linenumber" name="L832" href="#L832">832</a>         }
-<a class="jxr_linenumber" name="L833" href="#L833">833</a>         
-<a class="jxr_linenumber" name="L834" href="#L834">834</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L835" href="#L835">835</a> <em class="jxr_javadoccomment">         * Sets the display name for the argument value.</em>
-<a class="jxr_linenumber" name="L836" href="#L836">836</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L837" href="#L837">837</a> <em class="jxr_javadoccomment">         * @param argName the display name for the argument value.</em>
-<a class="jxr_linenumber" name="L838" href="#L838">838</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L839" href="#L839">839</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L840" href="#L840">840</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> argName(<strong class="jxr_keyword">final</strong> String argName)
-<a class="jxr_linenumber" name="L841" href="#L841">841</a>         {
-<a class="jxr_linenumber" name="L842" href="#L842">842</a>             <strong class="jxr_keyword">this</strong>.argName = argName;
-<a class="jxr_linenumber" name="L843" href="#L843">843</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L844" href="#L844">844</a>         }
-<a class="jxr_linenumber" name="L845" href="#L845">845</a> 
-<a class="jxr_linenumber" name="L846" href="#L846">846</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L847" href="#L847">847</a> <em class="jxr_javadoccomment">         * Sets the description for this option.</em>
-<a class="jxr_linenumber" name="L848" href="#L848">848</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L849" href="#L849">849</a> <em class="jxr_javadoccomment">         * @param description the description of the option.</em>
-<a class="jxr_linenumber" name="L850" href="#L850">850</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L851" href="#L851">851</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L852" href="#L852">852</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> desc(<strong class="jxr_keyword">final</strong> String description)
-<a class="jxr_linenumber" name="L853" href="#L853">853</a>         {
-<a class="jxr_linenumber" name="L854" href="#L854">854</a>             <strong class="jxr_keyword">this</strong>.description = description;
-<a class="jxr_linenumber" name="L855" href="#L855">855</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L856" href="#L856">856</a>         }
-<a class="jxr_linenumber" name="L857" href="#L857">857</a> 
-<a class="jxr_linenumber" name="L858" href="#L858">858</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L859" href="#L859">859</a> <em class="jxr_javadoccomment">         * Sets the long name of the Option.</em>
-<a class="jxr_linenumber" name="L860" href="#L860">860</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L861" href="#L861">861</a> <em class="jxr_javadoccomment">         * @param longOpt the long name of the Option</em>
-<a class="jxr_linenumber" name="L862" href="#L862">862</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L863" href="#L863">863</a> <em class="jxr_javadoccomment">         */</em>        
-<a class="jxr_linenumber" name="L864" href="#L864">864</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> longOpt(<strong class="jxr_keyword">final</strong> String longOpt)
-<a class="jxr_linenumber" name="L865" href="#L865">865</a>         {
-<a class="jxr_linenumber" name="L866" href="#L866">866</a>             <strong class="jxr_keyword">this</strong>.longOpt = longOpt;
-<a class="jxr_linenumber" name="L867" href="#L867">867</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L868" href="#L868">868</a>         }
-<a class="jxr_linenumber" name="L869" href="#L869">869</a>         
-<a class="jxr_linenumber" name="L870" href="#L870">870</a>         <em class="jxr_javadoccomment">/** </em>
-<a class="jxr_linenumber" name="L871" href="#L871">871</a> <em class="jxr_javadoccomment">         * Sets the number of argument values the Option can take.</em>
-<a class="jxr_linenumber" name="L872" href="#L872">872</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L873" href="#L873">873</a> <em class="jxr_javadoccomment">         * @param numberOfArgs the number of argument values</em>
-<a class="jxr_linenumber" name="L874" href="#L874">874</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L875" href="#L875">875</a> <em class="jxr_javadoccomment">         */</em>        
-<a class="jxr_linenumber" name="L876" href="#L876">876</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> numberOfArgs(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> numberOfArgs)
-<a class="jxr_linenumber" name="L877" href="#L877">877</a>         {
-<a class="jxr_linenumber" name="L878" href="#L878">878</a>             <strong class="jxr_keyword">this</strong>.numberOfArgs = numberOfArgs;
-<a class="jxr_linenumber" name="L879" href="#L879">879</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L880" href="#L880">880</a>         }
-<a class="jxr_linenumber" name="L881" href="#L881">881</a>         
-<a class="jxr_linenumber" name="L882" href="#L882">882</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L883" href="#L883">883</a> <em class="jxr_javadoccomment">         * Sets whether the Option can have an optional argument.</em>
-<a class="jxr_linenumber" name="L884" href="#L884">884</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L885" href="#L885">885</a> <em class="jxr_javadoccomment">         * @param isOptional specifies whether the Option can have</em>
-<a class="jxr_linenumber" name="L886" href="#L886">886</a> <em class="jxr_javadoccomment">         * an optional argument.</em>
-<a class="jxr_linenumber" name="L887" href="#L887">887</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L888" href="#L888">888</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L889" href="#L889">889</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> optionalArg(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> isOptional)
-<a class="jxr_linenumber" name="L890" href="#L890">890</a>         {
-<a class="jxr_linenumber" name="L891" href="#L891">891</a>             <strong class="jxr_keyword">this</strong>.optionalArg = isOptional;
-<a class="jxr_linenumber" name="L892" href="#L892">892</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L893" href="#L893">893</a>         }
-<a class="jxr_linenumber" name="L894" href="#L894">894</a>         
-<a class="jxr_linenumber" name="L895" href="#L895">895</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L896" href="#L896">896</a> <em class="jxr_javadoccomment">         * Marks this Option as required.</em>
-<a class="jxr_linenumber" name="L897" href="#L897">897</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L898" href="#L898">898</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L899" href="#L899">899</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L900" href="#L900">900</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> required()
-<a class="jxr_linenumber" name="L901" href="#L901">901</a>         {
-<a class="jxr_linenumber" name="L902" href="#L902">902</a>             <strong class="jxr_keyword">return</strong> required(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L903" href="#L903">903</a>         }
-<a class="jxr_linenumber" name="L904" href="#L904">904</a> 
-<a class="jxr_linenumber" name="L905" href="#L905">905</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L906" href="#L906">906</a> <em class="jxr_javadoccomment">         * Sets whether the Option is mandatory.</em>
-<a class="jxr_linenumber" name="L907" href="#L907">907</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L908" href="#L908">908</a> <em class="jxr_javadoccomment">         * @param required specifies whether the Option is mandatory</em>
-<a class="jxr_linenumber" name="L909" href="#L909">909</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L910" href="#L910">910</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L911" href="#L911">911</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> required(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> required)
-<a class="jxr_linenumber" name="L912" href="#L912">912</a>         {
-<a class="jxr_linenumber" name="L913" href="#L913">913</a>             <strong class="jxr_keyword">this</strong>.required = required;
-<a class="jxr_linenumber" name="L914" href="#L914">914</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L915" href="#L915">915</a>         }
-<a class="jxr_linenumber" name="L916" href="#L916">916</a>         
-<a class="jxr_linenumber" name="L917" href="#L917">917</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L918" href="#L918">918</a> <em class="jxr_javadoccomment">         * Sets the type of the Option.</em>
-<a class="jxr_linenumber" name="L919" href="#L919">919</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L920" href="#L920">920</a> <em class="jxr_javadoccomment">         * @param type the type of the Option</em>
-<a class="jxr_linenumber" name="L921" href="#L921">921</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L922" href="#L922">922</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L923" href="#L923">923</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> type(<strong class="jxr_keyword">final</strong> Class&lt;?&gt; type)
-<a class="jxr_linenumber" name="L924" href="#L924">924</a>         {
-<a class="jxr_linenumber" name="L925" href="#L925">925</a>             <strong class="jxr_keyword">this</strong>.type = type;
-<a class="jxr_linenumber" name="L926" href="#L926">926</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L927" href="#L927">927</a>         }
-<a class="jxr_linenumber" name="L928" href="#L928">928</a> 
-<a class="jxr_linenumber" name="L929" href="#L929">929</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L930" href="#L930">930</a> <em class="jxr_javadoccomment">         * The Option will use '=' as a means to separate argument value.</em>
-<a class="jxr_linenumber" name="L931" href="#L931">931</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L932" href="#L932">932</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L933" href="#L933">933</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L934" href="#L934">934</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> valueSeparator()
-<a class="jxr_linenumber" name="L935" href="#L935">935</a>         {
-<a class="jxr_linenumber" name="L936" href="#L936">936</a>             <strong class="jxr_keyword">return</strong> valueSeparator('=');
-<a class="jxr_linenumber" name="L937" href="#L937">937</a>         }
-<a class="jxr_linenumber" name="L938" href="#L938">938</a> 
-<a class="jxr_linenumber" name="L939" href="#L939">939</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L940" href="#L940">940</a> <em class="jxr_javadoccomment">         * The Option will use &lt;code&gt;sep&lt;/code&gt; as a means to</em>
-<a class="jxr_linenumber" name="L941" href="#L941">941</a> <em class="jxr_javadoccomment">         * separate argument values.</em>
-<a class="jxr_linenumber" name="L942" href="#L942">942</a> <em class="jxr_javadoccomment">         * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L943" href="#L943">943</a> <em class="jxr_javadoccomment">         * &lt;b&gt;Example:&lt;/b&gt;</em>
-<a class="jxr_linenumber" name="L944" href="#L944">944</a> <em class="jxr_javadoccomment">         * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="L945" href="#L945">945</a> <em class="jxr_javadoccomment">         * Option opt = Option.builder("D").hasArgs()</em>
-<a class="jxr_linenumber" name="L946" href="#L946">946</a> <em class="jxr_javadoccomment">         *                                 .valueSeparator('=')</em>
-<a class="jxr_linenumber" name="L947" href="#L947">947</a> <em class="jxr_javadoccomment">         *                                 .build();</em>
-<a class="jxr_linenumber" name="L948" href="#L948">948</a> <em class="jxr_javadoccomment">         * Options options = new Options();</em>
-<a class="jxr_linenumber" name="L949" href="#L949">949</a> <em class="jxr_javadoccomment">         * options.addOption(opt);</em>
-<a class="jxr_linenumber" name="L950" href="#L950">950</a> <em class="jxr_javadoccomment">         * String[] args = {"-Dkey=value"};</em>
-<a class="jxr_linenumber" name="L951" href="#L951">951</a> <em class="jxr_javadoccomment">         * CommandLineParser parser = new DefaultParser();</em>
-<a class="jxr_linenumber" name="L952" href="#L952">952</a> <em class="jxr_javadoccomment">         * CommandLine line = parser.parse(options, args);</em>
-<a class="jxr_linenumber" name="L953" href="#L953">953</a> <em class="jxr_javadoccomment">         * String propertyName = line.getOptionValues("D")[0];  // will be "key"</em>
-<a class="jxr_linenumber" name="L954" href="#L954">954</a> <em class="jxr_javadoccomment">         * String propertyValue = line.getOptionValues("D")[1]; // will be "value"</em>
-<a class="jxr_linenumber" name="L955" href="#L955">955</a> <em class="jxr_javadoccomment">         * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="L956" href="#L956">956</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="L957" href="#L957">957</a> <em class="jxr_javadoccomment">         * @param sep The value separator.</em>
-<a class="jxr_linenumber" name="L958" href="#L958">958</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L959" href="#L959">959</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L960" href="#L960">960</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> valueSeparator(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> sep)
-<a class="jxr_linenumber" name="L961" href="#L961">961</a>         {
-<a class="jxr_linenumber" name="L962" href="#L962">962</a>             valuesep = sep;
-<a class="jxr_linenumber" name="L963" href="#L963">963</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L964" href="#L964">964</a>         }
-<a class="jxr_linenumber" name="L965" href="#L965">965</a>         
-<a class="jxr_linenumber" name="L966" href="#L966">966</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L967" href="#L967">967</a> <em class="jxr_javadoccomment">         * Indicates that the Option will require an argument.</em>
-<a class="jxr_linenumber" name="L968" href="#L968">968</a> <em class="jxr_javadoccomment">         * </em>
-<a class="jxr_linenumber" name="L969" href="#L969">969</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L970" href="#L970">970</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L971" href="#L971">971</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> hasArg()
-<a class="jxr_linenumber" name="L972" href="#L972">972</a>         {
-<a class="jxr_linenumber" name="L973" href="#L973">973</a>             <strong class="jxr_keyword">return</strong> hasArg(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L974" href="#L974">974</a>         }
-<a class="jxr_linenumber" name="L975" href="#L975">975</a> 
-<a class="jxr_linenumber" name="L976" href="#L976">976</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L977" href="#L977">977</a> <em class="jxr_javadoccomment">         * Indicates if the Option has an argument or not.</em>
-<a class="jxr_linenumber" name="L978" href="#L978">978</a> <em class="jxr_javadoccomment">         * </em>
-<a class="jxr_linenumber" name="L979" href="#L979">979</a> <em class="jxr_javadoccomment">         * @param hasArg specifies whether the Option takes an argument or not</em>
-<a class="jxr_linenumber" name="L980" href="#L980">980</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L981" href="#L981">981</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L982" href="#L982">982</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> hasArg(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> hasArg)
-<a class="jxr_linenumber" name="L983" href="#L983">983</a>         {
-<a class="jxr_linenumber" name="L984" href="#L984">984</a>             <em class="jxr_comment">// set to UNINITIALIZED when no arg is specified to be compatible with OptionBuilder</em>
-<a class="jxr_linenumber" name="L985" href="#L985">985</a>             numberOfArgs = hasArg ? 1 : Option.UNINITIALIZED;
-<a class="jxr_linenumber" name="L986" href="#L986">986</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L987" href="#L987">987</a>         }
-<a class="jxr_linenumber" name="L988" href="#L988">988</a> 
-<a class="jxr_linenumber" name="L989" href="#L989">989</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L990" href="#L990">990</a> <em class="jxr_javadoccomment">         * Indicates that the Option can have unlimited argument values.</em>
-<a class="jxr_linenumber" name="L991" href="#L991">991</a> <em class="jxr_javadoccomment">         * </em>
-<a class="jxr_linenumber" name="L992" href="#L992">992</a> <em class="jxr_javadoccomment">         * @return this builder, to allow method chaining</em>
-<a class="jxr_linenumber" name="L993" href="#L993">993</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L994" href="#L994">994</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> hasArgs()
-<a class="jxr_linenumber" name="L995" href="#L995">995</a>         {
-<a class="jxr_linenumber" name="L996" href="#L996">996</a>             numberOfArgs = Option.UNLIMITED_VALUES;
-<a class="jxr_linenumber" name="L997" href="#L997">997</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L998" href="#L998">998</a>         }
-<a class="jxr_linenumber" name="L999" href="#L999">999</a> 
-<a class="jxr_linenumber" name="L1000" href="#L1000">1000</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L1001" href="#L1001">1001</a> <em class="jxr_javadoccomment">         * Constructs an Option with the values declared by this {@link Builder}.</em>
-<a class="jxr_linenumber" name="L1002" href="#L1002">1002</a> <em class="jxr_javadoccomment">         * </em>
-<a class="jxr_linenumber" name="L1003" href="#L1003">1003</a> <em class="jxr_javadoccomment">         * @return the new {@link Option}</em>
-<a class="jxr_linenumber" name="L1004" href="#L1004">1004</a> <em class="jxr_javadoccomment">         * @throws IllegalArgumentException if neither {@code opt} or {@code longOpt} has been set</em>
-<a class="jxr_linenumber" name="L1005" href="#L1005">1005</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L1006" href="#L1006">1006</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a> build()
-<a class="jxr_linenumber" name="L1007" href="#L1007">1007</a>         {
-<a class="jxr_linenumber" name="L1008" href="#L1008">1008</a>             <strong class="jxr_keyword">if</strong> (opt == <strong class="jxr_keyword">null</strong> &amp;&amp; longOpt == <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="L1009" href="#L1009">1009</a>             {
-<a class="jxr_linenumber" name="L1010" href="#L1010">1010</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Either opt or longOpt must be specified"</span>);
-<a class="jxr_linenumber" name="L1011" href="#L1011">1011</a>             }
-<a class="jxr_linenumber" name="L1012" href="#L1012">1012</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a>(<strong class="jxr_keyword">this</strong>);
-<a class="jxr_linenumber" name="L1013" href="#L1013">1013</a>         }
-<a class="jxr_linenumber" name="L1014" href="#L1014">1014</a>     }
-<a class="jxr_linenumber" name="L1015" href="#L1015">1015</a> }
+<a class="jxr_linenumber" name="L646" href="#L646">646</a>         <strong class="jxr_keyword">if</strong> (opt != <strong class="jxr_keyword">null</strong> ? !opt.equals(option.opt) : option.opt != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="L647" href="#L647">647</a>         {
+<a class="jxr_linenumber" name="L648" href="#L648">648</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L649" href="#L649">649</a>         }
+<a class="jxr_linenumber" name="L650" href="#L650">650</a>         <strong class="jxr_keyword">if</strong> (longOpt != <strong class="jxr_keyword">null</strong> ? !longOpt.equals(option.longOpt) : option.longOpt != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="L651" href="#L651">651</a>         {
+<a class="jxr_linenumber" name="L652" href="#L652">652</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L653" href="#L653">653</a>         }
+<a class="jxr_linenumber" name="L654" href="#L654">654</a> 
+<a class="jxr_linenumber" name="L655" href="#L655">655</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L656" href="#L656">656</a>     }
+<a class="jxr_linenumber" name="L657" href="#L657">657</a> 
+<a class="jxr_linenumber" name="L658" href="#L658">658</a>     @Override
+<a class="jxr_linenumber" name="L659" href="#L659">659</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode()
+<a class="jxr_linenumber" name="L660" href="#L660">660</a>     {
+<a class="jxr_linenumber" name="L661" href="#L661">661</a>         <strong class="jxr_keyword">int</strong> result;
+<a class="jxr_linenumber" name="L662" href="#L662">662</a>         result = opt != <strong class="jxr_keyword">null</strong> ? opt.hashCode() : 0;
+<a class="jxr_linenumber" name="L663" href="#L663">663</a>         result = 31 * result + (longOpt != <strong class="jxr_keyword">null</strong> ? longOpt.hashCode() : 0);
+<a class="jxr_linenumber" name="L664" href="#L664">664</a>         <strong class="jxr_keyword">return</strong> result;
+<a class="jxr_linenumber" name="L665" href="#L665">665</a>     }
+<a class="jxr_linenumber" name="L666" href="#L666">666</a> 
+<a class="jxr_linenumber" name="L667" href="#L667">667</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L668" href="#L668">668</a> <em class="jxr_javadoccomment">     * A rather odd clone method - due to incorrect code in 1.0 it is public </em>
+<a class="jxr_linenumber" name="L669" href="#L669">669</a> <em class="jxr_javadoccomment">     * and in 1.1 rather than throwing a CloneNotSupportedException it throws </em>
+<a class="jxr_linenumber" name="L670" href="#L670">670</a> <em class="jxr_javadoccomment">     * a RuntimeException so as to maintain backwards compat at the API level. </em>
+<a class="jxr_linenumber" name="L671" href="#L671">671</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L672" href="#L672">672</a> <em class="jxr_javadoccomment">     * After calling this method, it is very likely you will want to call </em>
+<a class="jxr_linenumber" name="L673" href="#L673">673</a> <em class="jxr_javadoccomment">     * clearValues(). </em>
+<a class="jxr_linenumber" name="L674" href="#L674">674</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L675" href="#L675">675</a> <em class="jxr_javadoccomment">     * @return a clone of this Option instance</em>
+<a class="jxr_linenumber" name="L676" href="#L676">676</a> <em class="jxr_javadoccomment">     * @throws RuntimeException if a {@link CloneNotSupportedException} has been thrown</em>
+<a class="jxr_linenumber" name="L677" href="#L677">677</a> <em class="jxr_javadoccomment">     * by {@code super.clone()}</em>
+<a class="jxr_linenumber" name="L678" href="#L678">678</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L679" href="#L679">679</a>     @Override
+<a class="jxr_linenumber" name="L680" href="#L680">680</a>     <strong class="jxr_keyword">public</strong> Object clone()
+<a class="jxr_linenumber" name="L681" href="#L681">681</a>     {
+<a class="jxr_linenumber" name="L682" href="#L682">682</a>         <strong class="jxr_keyword">try</strong>
+<a class="jxr_linenumber" name="L683" href="#L683">683</a>         {
+<a class="jxr_linenumber" name="L684" href="#L684">684</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a> option = (Option) <strong class="jxr_keyword">super</strong>.clone();
+<a class="jxr_linenumber" name="L685" href="#L685">685</a>             option.values = <strong class="jxr_keyword">new</strong> ArrayList&lt;String&gt;(values);
+<a class="jxr_linenumber" name="L686" href="#L686">686</a>             <strong class="jxr_keyword">return</strong> option;
+<a class="jxr_linenumber" name="L687" href="#L687">687</a>         }
+<a class="jxr_linenumber" name="L688" href="#L688">688</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> CloneNotSupportedException cnse)
+<a class="jxr_linenumber" name="L689" href="#L689">689</a>         {
+<a class="jxr_linenumber" name="L690" href="#L690">690</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"A CloneNotSupportedException was thrown: "</span> + cnse.getMessage());
+<a class="jxr_linenumber" name="L691" href="#L691">691</a>         }
+<a class="jxr_linenumber" name="L692" href="#L692">692</a>     }
+<a class="jxr_linenumber" name="L693" href="#L693">693</a> 
+<a class="jxr_linenumber" name="L694" href="#L694">694</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L695" href="#L695">695</a> <em class="jxr_javadoccomment">     * Clear the Option values. After a parse is complete, these are left with</em>
+<a class="jxr_linenumber" name="L696" href="#L696">696</a> <em class="jxr_javadoccomment">     * data in them and they need clearing if another parse is done.</em>
+<a class="jxr_linenumber" name="L697" href="#L697">697</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L698" href="#L698">698</a> <em class="jxr_javadoccomment">     * See: &lt;a href="https://issues.apache.org/jira/browse/CLI-71"&gt;CLI-71&lt;/a&gt;</em>
+<a class="jxr_linenumber" name="L699" href="#L699">699</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L700" href="#L700">700</a>     <strong class="jxr_keyword">void</strong> clearValues()
+<a class="jxr_linenumber" name="L701" href="#L701">701</a>     {
+<a class="jxr_linenumber" name="L702" href="#L702">702</a>         values.clear();
+<a class="jxr_linenumber" name="L703" href="#L703">703</a>     }
+<a class="jxr_linenumber" name="L704" href="#L704">704</a> 
+<a class="jxr_linenumber" name="L705" href="#L705">705</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L706" href="#L706">706</a> <em class="jxr_javadoccomment">     * This method is not intended to be used. It was a piece of internal </em>
+<a class="jxr_linenumber" name="L707" href="#L707">707</a> <em class="jxr_javadoccomment">     * API that was made public in 1.0. It currently throws an UnsupportedOperationException.</em>
+<a class="jxr_linenumber" name="L708" href="#L708">708</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L709" href="#L709">709</a> <em class="jxr_javadoccomment">     * @param value the value to add</em>
+<a class="jxr_linenumber" name="L710" href="#L710">710</a> <em class="jxr_javadoccomment">     * @return always throws an {@link UnsupportedOperationException}</em>
+<a class="jxr_linenumber" name="L711" href="#L711">711</a> <em class="jxr_javadoccomment">     * @throws UnsupportedOperationException always</em>
+<a class="jxr_linenumber" name="L712" href="#L712">712</a> <em class="jxr_javadoccomment">     * @deprecated</em>
+<a class="jxr_linenumber" name="L713" href="#L713">713</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L714" href="#L714">714</a>     @Deprecated
+<a class="jxr_linenumber" name="L715" href="#L715">715</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> addValue(<strong class="jxr_keyword">final</strong> String value)
+<a class="jxr_linenumber" name="L716" href="#L716">716</a>     {
+<a class="jxr_linenumber" name="L717" href="#L717">717</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> UnsupportedOperationException(<span class="jxr_string">"The addValue method is not intended for client use. "</span>
+<a class="jxr_linenumber" name="L718" href="#L718">718</a>                 + <span class="jxr_string">"Subclasses should use the addValueForProcessing method instead. "</span>);
+<a class="jxr_linenumber" name="L719" href="#L719">719</a>     }
+<a class="jxr_linenumber" name="L720" href="#L720">720</a> 
+<a class="jxr_linenumber" name="L721" href="#L721">721</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L722" href="#L722">722</a> <em class="jxr_javadoccomment">     * Tells if the option can accept more arguments.</em>
+<a class="jxr_linenumber" name="L723" href="#L723">723</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L724" href="#L724">724</a> <em class="jxr_javadoccomment">     * @return false if the maximum number of arguments is reached</em>
+<a class="jxr_linenumber" name="L725" href="#L725">725</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L726" href="#L726">726</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L727" href="#L727">727</a>     <strong class="jxr_keyword">boolean</strong> acceptsArg()
+<a class="jxr_linenumber" name="L728" href="#L728">728</a>     {
+<a class="jxr_linenumber" name="L729" href="#L729">729</a>         <strong class="jxr_keyword">return</strong> (hasArg() || hasArgs() || hasOptionalArg()) &amp;&amp; (numberOfArgs &lt;= 0 || values.size() &lt; numberOfArgs);
+<a class="jxr_linenumber" name="L730" href="#L730">730</a>     }
+<a class="jxr_linenumber" name="L731" href="#L731">731</a> 
+<a class="jxr_linenumber" name="L732" href="#L732">732</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L733" href="#L733">733</a> <em class="jxr_javadoccomment">     * Tells if the option requires more arguments to be valid.</em>
+<a class="jxr_linenumber" name="L734" href="#L734">734</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L735" href="#L735">735</a> <em class="jxr_javadoccomment">     * @return false if the option doesn't require more arguments</em>
+<a class="jxr_linenumber" name="L736" href="#L736">736</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L737" href="#L737">737</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L738" href="#L738">738</a>     <strong class="jxr_keyword">boolean</strong> requiresArg()
+<a class="jxr_linenumber" name="L739" href="#L739">739</a>     {
+<a class="jxr_linenumber" name="L740" href="#L740">740</a>         <strong class="jxr_keyword">if</strong> (optionalArg)
+<a class="jxr_linenumber" name="L741" href="#L741">741</a>         {
+<a class="jxr_linenumber" name="L742" href="#L742">742</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L743" href="#L743">743</a>         }
+<a class="jxr_linenumber" name="L744" href="#L744">744</a>         <strong class="jxr_keyword">if</strong> (numberOfArgs == UNLIMITED_VALUES)
+<a class="jxr_linenumber" name="L745" href="#L745">745</a>         {
+<a class="jxr_linenumber" name="L746" href="#L746">746</a>             <strong class="jxr_keyword">return</strong> values.isEmpty();
+<a class="jxr_linenumber" name="L747" href="#L747">747</a>         }
+<a class="jxr_linenumber" name="L748" href="#L748">748</a>         <strong class="jxr_keyword">return</strong> acceptsArg();
+<a class="jxr_linenumber" name="L749" href="#L749">749</a>     }
+<a class="jxr_linenumber" name="L750" href="#L750">750</a>     
+<a class="jxr_linenumber" name="L751" href="#L751">751</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L752" href="#L752">752</a> <em class="jxr_javadoccomment">     * Returns a {@link Builder} to create an {@link Option} using descriptive</em>
+<a class="jxr_linenumber" name="L753" href="#L753">753</a> <em class="jxr_javadoccomment">     * methods.  </em>
+<a class="jxr_linenumber" name="L754" href="#L754">754</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L755" href="#L755">755</a> <em class="jxr_javadoccomment">     * @return a new {@link Builder} instance</em>
+<a class="jxr_linenumber" name="L756" href="#L756">756</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L757" href="#L757">757</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L758" href="#L758">758</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> builder()
+<a class="jxr_linenumber" name="L759" href="#L759">759</a>     {
+<a class="jxr_linenumber" name="L760" href="#L760">760</a>         <strong class="jxr_keyword">return</strong> builder(<strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L761" href="#L761">761</a>     }
+<a class="jxr_linenumber" name="L762" href="#L762">762</a>     
+<a class="jxr_linenumber" name="L763" href="#L763">763</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L764" href="#L764">764</a> <em class="jxr_javadoccomment">     * Returns a {@link Builder} to create an {@link Option} using descriptive</em>
+<a class="jxr_linenumber" name="L765" href="#L765">765</a> <em class="jxr_javadoccomment">     * methods.  </em>
+<a class="jxr_linenumber" name="L766" href="#L766">766</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L767" href="#L767">767</a> <em class="jxr_javadoccomment">     * @param opt short representation of the option</em>
+<a class="jxr_linenumber" name="L768" href="#L768">768</a> <em class="jxr_javadoccomment">     * @return a new {@link Builder} instance</em>
+<a class="jxr_linenumber" name="L769" href="#L769">769</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if there are any non valid Option characters in {@code opt}</em>
+<a class="jxr_linenumber" name="L770" href="#L770">770</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L771" href="#L771">771</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L772" href="#L772">772</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> builder(<strong class="jxr_keyword">final</strong> String opt)
+<a class="jxr_linenumber" name="L773" href="#L773">773</a>     {
+<a class="jxr_linenumber" name="L774" href="#L774">774</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a>(opt);
+<a class="jxr_linenumber" name="L775" href="#L775">775</a>     }
+<a class="jxr_linenumber" name="L776" href="#L776">776</a>     
+<a class="jxr_linenumber" name="L777" href="#L777">777</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L778" href="#L778">778</a> <em class="jxr_javadoccomment">     * A nested builder class to create &lt;code&gt;Option&lt;/code&gt; instances</em>
+<a class="jxr_linenumber" name="L779" href="#L779">779</a> <em class="jxr_javadoccomment">     * using descriptive methods.</em>
+<a class="jxr_linenumber" name="L780" href="#L780">780</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L781" href="#L781">781</a> <em class="jxr_javadoccomment">     * Example usage:</em>
+<a class="jxr_linenumber" name="L782" href="#L782">782</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="L783" href="#L783">783</a> <em class="jxr_javadoccomment">     * Option option = Option.builder("a")</em>
+<a class="jxr_linenumber" name="L784" href="#L784">784</a> <em class="jxr_javadoccomment">     *     .required(true)</em>
+<a class="jxr_linenumber" name="L785" href="#L785">785</a> <em class="jxr_javadoccomment">     *     .longOpt("arg-name")</em>
+<a class="jxr_linenumber" name="L786" href="#L786">786</a> <em class="jxr_javadoccomment">     *     .build();</em>
+<a class="jxr_linenumber" name="L787" href="#L787">787</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="L788" href="#L788">788</a> <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L789" href="#L789">789</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
+<a class="jxr_linenumber" name="L790" href="#L790">790</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L791" href="#L791">791</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/Option.html">Builder</a> 
+<a class="jxr_linenumber" name="L792" href="#L792">792</a>     {
+<a class="jxr_linenumber" name="L793" href="#L793">793</a>         <em class="jxr_javadoccomment">/** the name of the option */</em>
+<a class="jxr_linenumber" name="L794" href="#L794">794</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String opt;
+<a class="jxr_linenumber" name="L795" href="#L795">795</a> 
+<a class="jxr_linenumber" name="L796" href="#L796">796</a>         <em class="jxr_javadoccomment">/** description of the option */</em>
+<a class="jxr_linenumber" name="L797" href="#L797">797</a>         <strong class="jxr_keyword">private</strong> String description;
+<a class="jxr_linenumber" name="L798" href="#L798">798</a> 
+<a class="jxr_linenumber" name="L799" href="#L799">799</a>         <em class="jxr_javadoccomment">/** the long representation of the option */</em>
+<a class="jxr_linenumber" name="L800" href="#L800">800</a>         <strong class="jxr_keyword">private</strong> String longOpt;
+<a class="jxr_linenumber" name="L801" href="#L801">801</a> 
+<a class="jxr_linenumber" name="L802" href="#L802">802</a>         <em class="jxr_javadoccomment">/** the name of the argument for this option */</em>
+<a class="jxr_linenumber" name="L803" href="#L803">803</a>         <strong class="jxr_keyword">private</strong> String argName;
+<a class="jxr_linenumber" name="L804" href="#L804">804</a> 
+<a class="jxr_linenumber" name="L805" href="#L805">805</a>         <em class="jxr_javadoccomment">/** specifies whether this option is required to be present */</em>
+<a class="jxr_linenumber" name="L806" href="#L806">806</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> required;

[... 212 lines stripped ...]


Mime
View raw message