Use @ReplacedBy a few more places.

I'm going to start adding this more aggressively as I come across "old things".


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2761 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2010-03-26 17:57:47 +00:00
parent b168db60f4
commit aab57210e5
2 changed files with 7 additions and 0 deletions
@@ -10,10 +10,13 @@ import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import com.samskivert.annotation.ReplacedBy;
/**
* A CountMap maps keys to non-null Integers and provides methods for efficiently adding
* to the count.
*/
@ReplacedBy("com.google.common.collect.Multiset")
public class CountMap<K> extends AbstractMap<K, Integer>
{
/**
@@ -53,6 +56,7 @@ public class CountMap<K> extends AbstractMap<K, Integer>
/**
* Add the specified amount to the count for the specified key, return the new count.
* Adding 0 will ensure that a Map.Entry is created for the specified key.
*/
public int add (K key, int amount)
{
@@ -25,6 +25,8 @@ import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
import com.samskivert.annotation.ReplacedBy;
/**
* Arbitrates membership.
*
@@ -42,6 +44,7 @@ import java.util.NoSuchElementException;
*
* An interface like this may someday be in the Java library, but until then...
*/
@ReplacedBy("com.google.common.base.Predicate")
public abstract class Predicate<T>
{
//--------------------------------------------------------------------