public interface Bag<E>
extends java.util.Collection<E>
UnsupportedOperationException
.
Note, that no specific Object.equals(Object)
or Object.hashCode()
requirements are added by this interface. This means that implementations may
simply use the Object
-provided, identity-based comparison semantics.
Modifier and Type | Method and Description |
---|---|
int |
count(java.lang.Object o)
Queries how many times the specified object occurs in me.
|