MCPcopy Create free account
hub / github.com/apache/storm / Opt

Method Opt

storm-core/src/jvm/org/apache/storm/command/CLI.java:224–231  ·  view source on GitHub ↗
(String shortName, String longName, Object defaultValue, Parse parse, Assoc assoc, boolean noValue)

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected