Package org.benf.cfr.reader.util.getopt
Class OptionsImpl.DefaultingIntDecoder
- java.lang.Object
-
- org.benf.cfr.reader.util.getopt.OptionsImpl.DefaultingIntDecoder
-
- All Implemented Interfaces:
TrinaryFunction<java.lang.String,java.lang.Void,Options,java.lang.Integer>
,OptionDecoder<java.lang.Integer>
,OptionDecoderParam<java.lang.Integer,java.lang.Void>
- Enclosing class:
- OptionsImpl
private static class OptionsImpl.DefaultingIntDecoder extends java.lang.Object implements OptionDecoder<java.lang.Integer>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Integer
defaultValue
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultingIntDecoder(java.lang.Integer defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefaultValue()
java.lang.String
getRangeDescription()
java.lang.Integer
invoke(java.lang.String arg, java.lang.Void ignore, Options ignore2)
-
-
-
Method Detail
-
invoke
public java.lang.Integer invoke(java.lang.String arg, java.lang.Void ignore, Options ignore2)
- Specified by:
invoke
in interfaceTrinaryFunction<java.lang.String,java.lang.Void,Options,java.lang.Integer>
-
getRangeDescription
public java.lang.String getRangeDescription()
- Specified by:
getRangeDescription
in interfaceOptionDecoderParam<java.lang.Integer,java.lang.Void>
-
getDefaultValue
public java.lang.String getDefaultValue()
- Specified by:
getDefaultValue
in interfaceOptionDecoderParam<java.lang.Integer,java.lang.Void>
-
-