org.dstadler.commons.collections.MappedCounter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-dost Show documentation
Show all versions of commons-dost Show documentation
Common utilities I find useful in many of my projects.
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