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

de.retest.recheck.xml.Counter Maven / Gradle / Ivy

The newest version!
package de.retest.recheck.xml;

import java.util.HashMap;
import java.util.Map;

public class Counter {

	private final Map counts = new HashMap();

	public int getCount( final Object value ) {
		Integer result = counts.get( value );
		if ( result == null ) {
			result = 0;
		}
		counts.put( value, result + 1 );
		return result;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy