@Test public void testConstructorWithCollection() { RandomizedBag<Integer> bag = new RandomizedBag<>(baseItems); assertNotNull(bag); assertEquals(baseItems.size(), bag.size()); }
@Override public int size() { return elems.size(); }
RandomizedBag extends AbstractCollection<E> implements Serializable { @Override public int size() { return elems.size(); } }
RandomizedBag extends AbstractCollection<E> implements Serializable { @Override public int size() { return elems.size(); } RandomizedBag();  RandomizedBag(long seed);  RandomizedBag(Collection<E> c);  RandomizedBag(long seed, Collection<E> c); }
RandomizedBag extends AbstractCollection<E> implements Serializable { @Override public int size() { return elems.size(); } RandomizedBag();  RandomizedBag(long seed);  RandomizedBag(Collection<E> c);  RandomizedBag(long seed, Collection<E> c); @Override boolean add(E e); E remove(); Iterator<E> iterator(); @Override int size(); }
RandomizedBag extends AbstractCollection<E> implements Serializable { @Override public int size() { return elems.size(); } RandomizedBag();  RandomizedBag(long seed);  RandomizedBag(Collection<E> c);  RandomizedBag(long seed, Collection<E> c); @Override boolean add(E e); E remove(); Iterator<E> iterator(); @Override int size();  }