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:
ray.j.greenwell
2010-04-05 18:34:32 +00:00
parent 5b1a640433
commit a072d4f1a4
2 changed files with 4 additions and 1 deletions
@@ -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[]>
+1 -1
View File
@@ -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>
{ {
/** /**