MCPcopy Create free account
hub / github.com/cinit/TMoe / getFirstByTypeOrNull

Method getFirstByTypeOrNull

app/src/main/java/cc/ioctl/tmoe/util/Reflex.java:1113–1119  ·  view source on GitHub ↗
(Object obj, Class<T> type)

Source from the content-addressed store, hash-verified

1111 }
1112
1113 public static <T> T getFirstByTypeOrNull(Object obj, Class<T> type) {
1114 try {
1115 return getFirstByType(obj, type);
1116 } catch (NoSuchFieldException e) {
1117 return null;
1118 }
1119 }
1120
1121 /**
1122 * NSF: Neither Static nor Final

Callers

nothing calls this directly

Calls 1

getFirstByTypeMethod · 0.95

Tested by

no test coverage detected