package com.badlogic.gdx.utils;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Iterator;
import java.util.NoSuchElementException;
<BUG>public class Bag<T> {
public T[] items;</BUG>
public int size;
private ItemIterator iterator;
public Bag () {

package com.badlogic.gdx.utils;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class Bag<T> implements Iterable<T> {
public T[] items;
public int size;
private ItemIterator iterator;
public Bag () {
