MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / getFieldNumber

Method getFieldNumber

exceptions/DynamicFields.java:33–39  ·  view source on GitHub ↗
(String id)

Source from the content-addressed store, hash-verified

31 return -1;
32 }
33 private int getFieldNumber(String id)
34 throws NoSuchFieldException {
35 int fieldNum = hasField(id);
36 if(fieldNum == -1)
37 throw new NoSuchFieldException();
38 return fieldNum;
39 }
40 private int makeField(String id) {
41 for(int i = 0; i < fields.length; i++)
42 if(fields[i][0] == null) {

Callers 1

getFieldMethod · 0.95

Calls 1

hasFieldMethod · 0.95

Tested by

no test coverage detected