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

org.dstadler.commons.collections.MappedCounter Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
package org.dstadler.commons.collections;

import java.util.Map;
import java.util.Set;

/**
 * Interface for a Collection which simply counts a number
 * of items.
 *
 * @param 
 * @author dominik.stadler
 */
public interface MappedCounter {
	void addInt(T k, int v);

	int get(T k);

    int remove(T key);

	Set keys();

	Set> entries();

	int sum();

	Map sortedMap();

	@Override
	String toString();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy