snaq.util.jclap
Class LongOption

java.lang.Object
  extended by snaq.util.jclap.Option<java.lang.Long>
      extended by snaq.util.jclap.LongOption

public class LongOption
extends Option<java.lang.Long>

Implementation of an Option with value of type Long.

Author:
Giles Winstanley

Constructor Summary
LongOption(java.lang.String shortName, java.lang.String longName, java.lang.String description, boolean mandatory, boolean allowMany)
          Creates a new LongOption instance.
LongOption(java.lang.String shortName, java.lang.String longName, java.lang.String description, int minCount, int maxCount)
          Creates a new LongOption instance.
 
Method Summary
 java.lang.Class<java.lang.Long> getType()
          Returns the class type of value this option can take.
 
Methods inherited from class snaq.util.jclap.Option
equals, getDescription, getLongName, getMaxCount, getMinCount, getShortName, getValues, hashCode, isAllowMany, isHidden, isMandatory, requiresValue, setHidden, setMinMaxCounts, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongOption

public LongOption(java.lang.String shortName,
                  java.lang.String longName,
                  java.lang.String description,
                  int minCount,
                  int maxCount)
Creates a new LongOption instance.

Parameters:
shortName - short name of the option (e.g. -?)
longName - long name of the option (e.g. --help)
description - helpful description of the option (printed for usage message)
minCount - minimum number of occurrences required for this option
maxCount - maximum number of occurrences required for this option

LongOption

public LongOption(java.lang.String shortName,
                  java.lang.String longName,
                  java.lang.String description,
                  boolean mandatory,
                  boolean allowMany)
Creates a new LongOption instance.

Parameters:
shortName - short name of the option (e.g. -?)
longName - long name of the option (e.g. --help)
description - helpful description of the option (printed for usage message)
mandatory - whether this option must be specified
allowMany - whether this option can take more than one value (i.e. be specified more than once)
Method Detail

getType

public java.lang.Class<java.lang.Long> getType()
Description copied from class: Option
Returns the class type of value this option can take.

Specified by:
getType in class Option<java.lang.Long>