org.eclipse.ocl.util.BagImpl Maven / Gradle / Ivy
/**
*
*
* Copyright (c) 2005, 2007, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
* Axel Uhl (SAP AG) - Bug 342644
*
*
*
* $Id: BagImpl.java,v 1.5 2011/05/01 10:56:50 auhl Exp $
*/
package org.eclipse.ocl.util;
import java.util.AbstractCollection;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import org.eclipse.ocl.internal.OCLPlugin;
import org.eclipse.ocl.internal.l10n.OCLMessages;
/**
* Default implementation of the {@link Bag} interface.
*
* @author Christian W. Damus (cdamus)
*/
final class BagImpl extends AbstractCollection implements Bag {
public static Bag> EMPTY_BAG = new BagImpl