MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / getValues

Method getValues

src/main/java/com/rtg/util/cli/Flag.java:538–549  ·  view source on GitHub ↗

Get a collection of all values set for this flag. This is for flags that can be set multiple times. If the flag was not user-set, then the collection contains only the default value (if defined). @return a Collection of the supplied values.

()

Source from the content-addressed store, hash-verified

536 * @return a <code>Collection</code> of the supplied values.
537 */
538 public List<T> getValues() {
539 final List<T> result;
540 if (isSet()) {
541 result = mParameter;
542 } else {
543 result = new ArrayList<>();
544 if (mParameterDefault != null) {
545 result.add(mParameterDefault);
546 }
547 }
548 return Collections.unmodifiableList(result);
549 }
550
551 void reset() {
552 mParameter = new ArrayList<>();

Callers 15

testFlagInnerClassMethod · 0.95
testMultiValueMethod · 0.45
isValidMethod · 0.45
processMethod · 0.45
buildScriptFilterMethod · 0.45
checkFileListMethod · 0.45
getFilesMethod · 0.45
mainExecMethod · 0.45
mainExecMethod · 0.45
getHeaderLinesMethod · 0.45
mainExecMethod · 0.45
collectIdsMethod · 0.45

Calls 2

isSetMethod · 0.95
addMethod · 0.65

Tested by 2

testFlagInnerClassMethod · 0.76
testMultiValueMethod · 0.36