MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / isAllDigits

Method isAllDigits

java/src/org/openqa/selenium/net/Urls.java:109–117  ·  view source on GitHub ↗
(final String input)

Source from the content-addressed store, hash-verified

107 }
108
109 private static boolean isAllDigits(final String input) {
110 for (int i = 0; i < input.length(); i++) {
111 if (!Character.isDigit(input.charAt(i))) {
112 return false;
113 }
114 }
115
116 return !input.isEmpty();
117 }
118
119 private static URI createHttpUri(String rawHost) {
120 int slashIndex = rawHost.indexOf('/');

Callers 1

fromMethod · 0.95

Calls 3

charAtMethod · 0.80
lengthMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected