|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.eventmanager.CompositeIterable<E>
org.eclipse.ocl.examples.eventmanager.util.CompositeCollection<E>
org.eclipse.ocl.examples.eventmanager.util.CompositeBag<E>
public class CompositeBag<E>
A Bag
implementation that allows for multiple occurrences of elements
in the nested collections and allows for them to be counted. In particular,
if the nested collections in turn conform to the Bag
interface, their
count(Object)
operation will be used to determine the composite
object count.
Constructor Summary | |
---|---|
CompositeBag(java.util.Collection<? extends E>... collections)
|
Method Summary | |
---|---|
int |
count(java.lang.Object o)
Queries how many times the specified object occurs in me. |
Methods inherited from class org.eclipse.ocl.examples.eventmanager.util.CompositeCollection |
---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from class org.eclipse.ocl.examples.eventmanager.CompositeIterable |
---|
getIterables |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
---|
public CompositeBag(java.util.Collection<? extends E>... collections)
Method Detail |
---|
public int count(java.lang.Object o)
Bag
count
in interface Bag<E>
o
- an object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |