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:
@@ -10,10 +10,13 @@ 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 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")
|
||||||
public class CountMap<K> extends AbstractMap<K, Integer>
|
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.
|
* 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)
|
public int add (K key, int amount)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ import java.util.Collection;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
|
|
||||||
|
import com.samskivert.annotation.ReplacedBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Arbitrates membership.
|
* Arbitrates membership.
|
||||||
*
|
*
|
||||||
@@ -42,6 +44,7 @@ import java.util.NoSuchElementException;
|
|||||||
*
|
*
|
||||||
* An interface like this may someday be in the Java library, but until then...
|
* 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>
|
public abstract class Predicate<T>
|
||||||
{
|
{
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user