(String shortName, String longName, Object defaultValue, Parse parse, Assoc assoc, boolean noValue)
| 222 | final boolean noValue; |
| 223 | |
| 224 | Opt(String shortName, String longName, Object defaultValue, Parse parse, Assoc assoc, boolean noValue) { |
| 225 | this.shortName = shortName; |
| 226 | this.longName = longName; |
| 227 | this.defaultValue = defaultValue; |
| 228 | this.parse = parse == null ? AS_STRING : parse; |
| 229 | this.assoc = assoc == null ? LAST_WINS : assoc; |
| 230 | this.noValue = noValue; |
| 231 | } |
| 232 | |
| 233 | public Object process(Object current, String value) { |
| 234 | return assoc.assoc(current, parse.parse(value)); |
nothing calls this directly
no outgoing calls
no test coverage detected