Author: tfmorris Date: 2008-10-14 12:19:47-0700 New Revision: 15922 Modified: trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/uml14/Bag.java (contents, props changed)
Log: Extend Collection instead of Set since this doesn't have Set semantics Modified: trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/uml14/Bag.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/uml14/Bag.java?view=diff&rev=15922&p1=trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/uml14/Bag.java&p2=trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/uml14/Bag.java&r1=15921&r2=15922 ============================================================================== --- trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/uml14/Bag.java (original) +++ trunk/src/argouml-app/src/org/argouml/profile/internal/ocl/uml14/Bag.java 2008-10-14 12:19:47-0700 @@ -1,4 +1,4 @@ -// $Id: eclipse-argo-codetemplates.xml 11347 2006-10-26 22:37:44Z linus $ +// $Id$ // Copyright (c) 2008 The Regents of the University of California. All // Rights Reserved. Permission to use, copy, modify, and distribute this // software and its documentation without fee, and without a written @@ -24,22 +24,22 @@ package org.argouml.profile.internal.ocl.uml14; -import java.util.Set; +import java.util.Collection; /** - * Represent OCL bags (sets which allow repeated elements + * Represent OCL bags (sets which allow repeated elements). * * @author maurelio1234 * @param <E> the type */ -public interface Bag<E> extends Set<E> { +public interface Bag<E> extends Collection<E> { /** - * Counts the number of repetitons of E in this Bag, if E is not present + * Counts the number of repetitions of E in this Bag, if E is not present * return 0 * * @param element the element - * @return the number of occourrences of E in this bag + * @return the number of occurrences of E in this bag */ int count(E element); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
