All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.psjava.ds.map.SetEqualityTester Maven / Gradle / Ivy

The newest version!
package org.psjava.ds.map;

import org.psjava.ds.set.Set;

public class SetEqualityTester {

	public static  boolean areEqual(Set m1, Set m2) {
		if (m1.size() != m2.size())
			return false;
		for (V v : m1)
			if (!m2.contains(v))
				return false;
		return true;
	}

	private SetEqualityTester() {
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy