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

Method iterator

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

Source from the content-addressed store, hash-verified

128 }
129
130 public Iterator<LinkedList.Node<T>> iterator() {
131 Iterator<LinkedList.Node<T>> iterator = new Iterator<LinkedList.Node<T>>() {
132 LinkedList.Node<T> node = LinkedList.this.getFirst();
133
134 public boolean hasNext() {
135 return this.node != null;
136 }
137
138 public LinkedList.Node<T> next() {
139 LinkedList.Node<T> node = this.node;
140
141 if (this.node != null) {
142 this.node = this.node.next;
143 }
144
145 return node;
146 }
147
148 public void remove() {
149 throw new UnsupportedOperationException("remove");
150 }
151 };
152 return iterator;
153 }
154
155 public LinkedList.Node<T> getFirst() {
156 return this.first;

Callers 8

toStringMethod · 0.95
getGroupMethod · 0.45
getMacroHeaderMethod · 0.45
dbgLinkedListMethod · 0.45
makeEntityRenderMethod · 0.45
modifyModelMethod · 0.45

Calls 1

getFirstMethod · 0.45

Tested by 1

dbgLinkedListMethod · 0.36