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

Method getBigNumber

solr/solrj/src/java/org/noggit/ObjectBuilder.java:135–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 }
134
135 public Object getBigNumber() throws IOException {
136 CharArr num = parser.getNumberChars();
137 String numstr = num.toString();
138 for (int ch; (ch = num.read()) != -1; ) {
139 if (ch == '.' || ch == 'e' || ch == 'E') return new BigDecimal(numstr);
140 }
141 return new BigInteger(numstr);
142 }
143
144 public Object getBoolean() throws IOException {
145 return parser.getBoolean();

Callers 1

getValMethod · 0.95

Calls 3

toStringMethod · 0.95
readMethod · 0.95
getNumberCharsMethod · 0.80

Tested by

no test coverage detected