MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / toString

Method toString

src/main/java/net/optifine/util/LinkedList.java:171–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169 }
170
171 public String toString() {
172 StringBuffer stringbuffer = new StringBuffer();
173
174 for (Iterator<Node<T>> it = iterator(); it.hasNext(); ) {
175 Node<T> node = it.next();
176 if (stringbuffer.length() > 0) {
177 stringbuffer.append(", ");
178 }
179 stringbuffer.append(node.getItem());
180 }
181
182 return "" + this.size + " [" + stringbuffer.toString() + "]";
183 }
184
185 public static class Node<T> {
186

Callers 4

arrayToStringMethod · 0.45
arrayToHexStringMethod · 0.45
fillLeftMethod · 0.45
fillRightMethod · 0.45

Calls 5

iteratorMethod · 0.95
lengthMethod · 0.80
hasNextMethod · 0.45
nextMethod · 0.45
getItemMethod · 0.45

Tested by

no test coverage detected