/*******************************************************************************
 * Copyright (c) 2008 SAS Institute Inc.
 * 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:
 *     SAS Institute Inc. - initial API and implementation
 ******************************************************************************/
package org.eclipse.cosmos.me.provisional.deployment.sdd.tooling.btg.aggregator;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

public class OperationsType {
	
	public static boolean equals(Collection<String> operations1, Collection<String> operations2)
	{	
		Set<String> ops1 = new HashSet<String>(operations1);
		Set<String> ops2 = new HashSet<String>(operations2);
		
		// AbstractSet.equals() does a element by element compare, exactly
		// what we need here
		
		return ops1.equals(ops2);		
	}

}
