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

Method getInt

solr/core/src/java/org/apache/solr/search/StrParser.java:150–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 }
149
150 public int getInt() {
151 eatws();
152 char[] arr = new char[end - pos];
153 int i;
154 for (i = 0; i < arr.length; i++) {
155 char ch = val.charAt(pos);
156 if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-') {
157 pos++;
158 arr[i] = ch;
159 } else {
160 break;
161 }
162 }
163
164 return Integer.parseInt(new String(arr, 0, i));
165 }
166
167 public byte getByte() {
168 eatws();

Callers 15

doFacetTestsMethod · 0.45
assertFullWalkNoDupsMethod · 0.45
doFacetTestsMethod · 0.45
isSortByCountMethod · 0.45
assertTraceOkMethod · 0.45
assertFullWalkNoDupsMethod · 0.45
parseMethod · 0.45
generateLoadMethod · 0.45
parseMethod · 0.45
doGraphQueryMethod · 0.45

Calls 3

eatwsMethod · 0.95
charAtMethod · 0.45
parseIntMethod · 0.45

Tested by 14

doFacetTestsMethod · 0.36
assertFullWalkNoDupsMethod · 0.36
doFacetTestsMethod · 0.36
isSortByCountMethod · 0.36
assertTraceOkMethod · 0.36
assertFullWalkNoDupsMethod · 0.36
parseMethod · 0.36
generateLoadMethod · 0.36
parseMethod · 0.36
doGraphQueryMethod · 0.36