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,
Bags| Modifier and Type | Method and Description |
|---|---|
int |
count(E e)
Returns the count of the given element in this bag.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayint count(E e)
e - the object to count.e in this bag.Copyright © 2012–2015. All rights reserved.