MCPcopy Create free account
hub / github.com/akeranen/the-one / setRunIndex

Method setRunIndex

core/Settings.java:101–104  ·  view source on GitHub ↗

Sets the run index for the settings (only has effect on settings with run array). A run array can be defined with syntax [settingFor1stRun ; settingFor2ndRun ; SettingFor3rdRun] I.e. settings are put in brackets and delimited with semicolon. First run's setting is returned when

(int index)

Source from the content-addressed store, hash-verified

99 * -1 to disable run indexing
100 */
101 public static void setRunIndex(int index) {
102 runIndex = index;
103 writtenSettings.clear();
104 }
105
106 /**
107 * Checks that the given integer array contains a valid range. I.e.,

Callers 7

mainMethod · 0.95
tearDownMethod · 0.95
testRunIndexMethod · 0.95
testRunIndexContainsMethod · 0.95
testEmptyRunIndexMethod · 0.95
testRunIndexCSVsMethod · 0.95
testNoRunMethod · 0.95

Calls

no outgoing calls

Tested by 6

tearDownMethod · 0.76
testRunIndexMethod · 0.76
testRunIndexContainsMethod · 0.76
testEmptyRunIndexMethod · 0.76
testRunIndexCSVsMethod · 0.76
testNoRunMethod · 0.76