E - the type of the elements in the bag.public abstract class AbstractBag<E> extends AbstractCollection<E> implements Bag<E>
Bag interface. If you want to
provide your own Bag implementation, it is more than highly adviced
that you extend this abstract base class.| Constructor and Description |
|---|
AbstractBag() |
| Modifier and Type | Method and Description |
|---|---|
int |
count(E e)
Returns the count of the given element in this bag.
|
boolean |
equals(Object o) |
int |
hashCode() |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringpublic int count(E e)
Bagpublic boolean equals(Object o)
equals in interface Collection<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in class ObjectCopyright © 2012–2015. All rights reserved.