Code example for HashSet

Methods: addAll, size

0
		} 
		return failures.size();
	} 
 
	public int getNumberOfFailures() { 
		Set<String> failures = new HashSet<String>();
		Collection<String> values = failureMap.values();
		failures.addAll(values);
		return failures.size();
	} 
 
	public static void main(String[] args) {
		String[] tests = new String[] { "js1_5/Regress/regress-114491.js" };
		FailureMatrix fm = parseFile(new File("/scratch/schuler/subjects/ibugs_rhino-0.1/failureMatrix.csv"));
		int detectedFailures = fm.getDetectedFailures(Arrays.asList(tests));
		System.out.println(detectedFailures);
	} 
}