MCPcopy Create free account
hub / github.com/Garten/sourcecraft / getConvertOption

Method getConvertOption

src/periphery/Config.java:169–181  ·  view source on GitHub ↗
(String searchedName)

Source from the content-addressed store, hash-verified

167 }
168
169 public ConvertOption getConvertOption(String searchedName) {
170 Object[] optionsArray = this.options.toArray();
171 int length = optionsArray.length;
172
173 for (int i = 0; i < length; i++) {
174 if (((ConvertOption) optionsArray[i]).getName()
175 .equals(searchedName)) {
176 return (ConvertOption) optionsArray[i];
177 }
178 }
179 Loggger.log("Cannot find a convertOption named " + searchedName);
180 return null;
181 }
182
183 public void setWindowPosX(String windowPosX) {
184 if (!windowPosX.equals("")) {

Callers 1

Calls 3

logMethod · 0.95
equalsMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected