Replace both of these by HashMultiset.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2770 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -26,12 +26,15 @@ import java.util.Iterator;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import com.samskivert.annotation.ReplacedBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A hashmap that maintains a count for each key.
|
* A hashmap that maintains a count for each key.
|
||||||
*
|
*
|
||||||
* This implementation should change so that we extend AbstractMap, do our own hashing, and can use
|
* This implementation should change so that we extend AbstractMap, do our own hashing, and can use
|
||||||
* our own Entry class.
|
* our own Entry class.
|
||||||
*/
|
*/
|
||||||
|
@ReplacedBy("com.google.common.collect.HashMultiset")
|
||||||
public class CountHashMap<K> extends HashMap<K, int[]>
|
public class CountHashMap<K> extends HashMap<K, int[]>
|
||||||
{
|
{
|
||||||
public interface Entry<K> extends Map.Entry<K, int[]>
|
public interface Entry<K> extends Map.Entry<K, int[]>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import com.samskivert.annotation.ReplacedBy;
|
|||||||
* A CountMap maps keys to non-null Integers and provides methods for efficiently adding
|
* A CountMap maps keys to non-null Integers and provides methods for efficiently adding
|
||||||
* to the count.
|
* to the count.
|
||||||
*/
|
*/
|
||||||
@ReplacedBy("com.google.common.collect.Multiset")
|
@ReplacedBy("com.google.common.collect.HashMultiset")
|
||||||
public class CountMap<K> extends AbstractMap<K, Integer>
|
public class CountMap<K> extends AbstractMap<K, Integer>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user