MCPcopy
hub / github.com/libgdx/libgdx / iterator

Method iterator

gdx/src/com/badlogic/gdx/utils/Queue.java:341–345  ·  view source on GitHub ↗

Returns an iterator for the items in the queue. Remove is supported. If Collections#allocateIterators is false, the same iterator instance is returned each time this method is called. Use the QueueIterator constructor for nested or multithreaded iteration.

()

Source from the content-addressed store, hash-verified

339 * If {@link Collections#allocateIterators} is false, the same iterator instance is returned each time this method is called.
340 * Use the {@link QueueIterator} constructor for nested or multithreaded iteration. */
341 public Iterator<T> iterator () {
342 if (Collections.allocateIterators) return new QueueIterator(this, true);
343 if (iterable == null) iterable = new QueueIterable(this);
344 return iterable.iterator();
345 }
346
347 public String toString () {
348 if (size == 0) {

Callers 15

iteratorTestMethod · 0.95
createMethod · 0.45
testMapMethod · 0.45
testEmptyMapsMethod · 0.45
testEntrySetMethod · 0.45
beginMethod · 0.45
renderBodiesMethod · 0.45
renderBodiesMethod · 0.45
saveMethod · 0.45
HieroSettingsMethod · 0.45
saveMethod · 0.45

Calls

no outgoing calls

Tested by 10

iteratorTestMethod · 0.76
createMethod · 0.36
testMapMethod · 0.36
testEmptyMapsMethod · 0.36
testEntrySetMethod · 0.36
beginMethod · 0.36
testLongMapIteratorMethod · 0.36
testIntMapIteratorMethod · 0.36
iteratorTestMethod · 0.36