MCPcopy Create free account
hub / github.com/apache/solr / objToInt

Method objToInt

solr/core/src/java/org/apache/solr/update/UpdateLog.java:346–350  ·  view source on GitHub ↗
(Object obj, int def)

Source from the content-addressed store, hash-verified

344 }
345
346 protected static int objToInt(Object obj, int def) {
347 if (obj != null) {
348 return Integer.parseInt(obj.toString());
349 } else return def;
350 }
351
352 public static Path ulogToTlogDir(
353 String coreName, Path ulogDirPath, Path instancePath, String coreDataDir) {

Callers 1

initMethod · 0.95

Calls 2

toStringMethod · 0.65
parseIntMethod · 0.45

Tested by

no test coverage detected