MCPcopy Create free account
hub / github.com/ReadyTalk/avian / hasMoreTokens

Method hasMoreTokens

classpath/java/util/StringTokenizer.java:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 public boolean hasMoreTokens() {
65 for (int i = position; i < in.length(); ++i) {
66 if (isDelimiter(in.charAt(i))) {
67 if (includeDelimiters) {
68 return true;
69 }
70 } else {
71 position = i;
72 return true;
73 }
74 }
75 return false;
76 }
77
78 public String nextToken() {
79 for (int i = position; i < in.length(); ++i) {

Callers 1

hasMoreElementsMethod · 0.95

Calls 3

isDelimiterMethod · 0.95
lengthMethod · 0.65
charAtMethod · 0.65

Tested by

no test coverage detected