org.argouml.profile.internal.ocl.uml14
Interface Bag<E>

Type Parameters:
E - the type
All Superinterfaces:
java.util.Collection<E>, java.lang.Iterable<E>
All Known Implementing Classes:
HashBag

public interface Bag<E>
extends java.util.Collection<E>

Represent OCL bags (sets which allow repeated elements).


Method Summary
 int count(E element)
          Counts the number of repetitions of E in this Bag, if E is not present return 0
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

count

int count(E element)
Counts the number of repetitions of E in this Bag, if E is not present return 0

Parameters:
element - the element
Returns:
the number of occurrences of E in this bag


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook