E - the type of the elements in the bag.public interface Bag<E> extends Collection<E>
Set, but,
which may have duplicate elements.Collection,
AbstractBag,
HashBag,
ConcurrentHashBag,
ImmutableBag,
Bagsint count(E e)
e - the object to count.e in this bag.Copyright © 2012–2015. All rights reserved.