MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getOptionIndex

Method getOptionIndex

src/javajs/async/AsyncDialog.java:252–259  ·  view source on GitHub ↗
(Object[] options, Object val)

Source from the content-addressed store, hash-verified

250 }
251
252 private int getOptionIndex(Object[] options, Object val) {
253 if (options != null)
254 for (int i = 0; i < options.length; i++) {
255 if (options[i] == val)
256 return i;
257 }
258 return -1;
259 }
260
261 public Object getValue() {
262 if (wantsInput || options == null)

Callers 1

propertyChangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected