Javadoc fixes

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1299209 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-03-10 14:28:37 +00:00
parent 42899fe63f
commit 28d5e308a1
19 changed files with 29 additions and 23 deletions

View File

@ -52,7 +52,7 @@ public class ComparatorUtils {
/** /**
* Comparator for natural sort order. * Comparator for natural sort order.
* *
* @see ComparableComparator#getInstance * @see ComparableComparator#comparableComparator()
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public static final Comparator NATURAL_COMPARATOR = ComparableComparator.<Comparable>comparableComparator(); public static final Comparator NATURAL_COMPARATOR = ComparableComparator.<Comparable>comparableComparator();

View File

@ -44,7 +44,7 @@ import java.util.Vector;
* instead of overwriting them. * instead of overwriting them.
* <p> * <p>
* <b>Please consider using the * <b>Please consider using the
* {@link org.apache.commons.configuration.PropertiesConfiguration} class in * {@code org.apache.commons.configuration.PropertiesConfiguration} class in
* <a href="http://commons.apache.org/configuration">Commons Configuration</a>. * <a href="http://commons.apache.org/configuration">Commons Configuration</a>.
* It's an evolution of <code>ExtendedProperties</code> supporting more * It's an evolution of <code>ExtendedProperties</code> supporting more
* features like automatic reloading, advanced interpolation, more type * features like automatic reloading, advanced interpolation, more type

View File

@ -23,7 +23,7 @@ import java.util.Set;
/** /**
* The "read" subset of the {@link Map} interface. * The "read" subset of the {@link Map} interface.
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
* @version $Revision$ $Date$ * @version $Revision$ $Date$
* @see Put * @see Put
* @author Matt Benson * @author Matt Benson

View File

@ -21,7 +21,7 @@ import java.util.Map;
/** /**
* The "read" subset of the {@link Map} interface. * The "read" subset of the {@link Map} interface.
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
* @version $Revision$ $Date$ * @version $Revision$ $Date$
* @see Put * @see Put
* @author Matt Benson * @author Matt Benson

View File

@ -24,7 +24,7 @@ import java.util.SortedMap;
* @param <K> the type of the keys in the map * @param <K> the type of the keys in the map
* @param <V> the type of the values in the map * @param <V> the type of the values in the map
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
* @version $Revision$ $Date$ * @version $Revision$ $Date$
* *
* @author Matt Benson * @author Matt Benson

View File

@ -1649,7 +1649,7 @@ public class MapUtils {
* @param map to wrap if necessary. * @param map to wrap if necessary.
* @return IterableMap<K, V> * @return IterableMap<K, V>
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
*/ */
public static <K, V> IterableMap<K, V> iterableMap(Map<K, V> map) { public static <K, V> IterableMap<K, V> iterableMap(Map<K, V> map) {
if (map == null) { if (map == null) {
@ -1667,7 +1667,7 @@ public class MapUtils {
* @param sortedMap to wrap if necessary * @param sortedMap to wrap if necessary
* @return {@link IterableSortedMap}<K, V> * @return {@link IterableSortedMap}<K, V>
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
*/ */
public static <K, V> IterableSortedMap<K, V> iterableSortedMap(SortedMap<K, V> sortedMap) { public static <K, V> IterableSortedMap<K, V> iterableSortedMap(SortedMap<K, V> sortedMap) {
if (sortedMap == null) { if (sortedMap == null) {

View File

@ -21,7 +21,7 @@ import java.util.Map;
/** /**
* The "write" subset of the {@link Map} interface. * The "write" subset of the {@link Map} interface.
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
* @version $Revision$ $Date$ * @version $Revision$ $Date$
* @see Get * @see Get
* @author Matt Benson * @author Matt Benson

View File

@ -52,7 +52,7 @@ public abstract class CatchAndRethrowClosure<E> implements Closure<E> {
* Execute this closure on the specified input object. * Execute this closure on the specified input object.
* *
* @param input the input to execute on * @param input the input to execute on
* @throws ClosureException (runtime) if the closure execution resulted in a * @throws FunctorException (runtime) if the closure execution resulted in a
* checked exception. * checked exception.
*/ */
public void execute(E input) { public void execute(E input) {

View File

@ -38,8 +38,8 @@ public interface Equator<T> {
/** /**
* Calculates the hash for the object, based on the method of equality used in the equate * Calculates the hash for the object, based on the method of equality used in the equate
* method. This is used for classes that delegate their {@link #equals(Object)} method to an * method. This is used for classes that delegate their {@link Object#equals(Object) equals(Object)} method to an
* Equator (and so must also delegate their {@link #hashCode()} method), or for implementations * Equator (and so must also delegate their {@link Object#hashCode() hashCode()} method), or for implementations
* of {@link HashedMap} that use an Equator for the key objects. * of {@link HashedMap} that use an Equator for the key objects.
* *
* @param o the object to calculate the hash for. * @param o the object to calculate the hash for.

View File

@ -22,7 +22,7 @@ import org.apache.commons.collections.MapIterator;
/** /**
* Provide a basic {@link IterableMap} implementation. * Provide a basic {@link IterableMap} implementation.
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
* @version $Revision$ $Date$ * @version $Revision$ $Date$
* *
* @author Matt Benson * @author Matt Benson

View File

@ -258,7 +258,7 @@ public abstract class AbstractLinkedMap<K, V> extends AbstractHashedMap<K, V> im
* This implementation adds the entry to the data storage table and * This implementation adds the entry to the data storage table and
* to the end of the linked list. * to the end of the linked list.
* *
* @param link the entry to add * @param entry the entry to add
* @param hashIndex the index into the data array to store at * @param hashIndex the index into the data array to store at
*/ */
@Override @Override

View File

@ -152,9 +152,13 @@ public abstract class AbstractReferenceMap<K, V> extends AbstractHashedMap<K, V>
* load factor and initial capacity. * load factor and initial capacity.
* *
* @param keyType the type of reference to use for keys; * @param keyType the type of reference to use for keys;
* must be {@link #HARD}, {@link #SOFT}, {@link #WEAK} * must be {@link ReferenceStrength#HARD HARD},
* {@link ReferenceStrength#SOFT SOFT},
* {@link ReferenceStrength#WEAK WEAK}
* @param valueType the type of reference to use for values; * @param valueType the type of reference to use for values;
* must be {@link #HARD}, {@link #SOFT}, {@link #WEAK} * must be {@link ReferenceStrength#HARD},
* {@link ReferenceStrength#SOFT SOFT},
* {@link ReferenceStrength#WEAK WEAK}
* @param capacity the initial capacity for the map * @param capacity the initial capacity for the map
* @param loadFactor the load factor for the map * @param loadFactor the load factor for the map
* @param purgeValues should the value be automatically purged when the * @param purgeValues should the value be automatically purged when the

View File

@ -149,8 +149,9 @@ public class DefaultedMap<K, V> extends AbstractMapDecorator<K, V> implements Se
* Constructor that wraps (not copies). * Constructor that wraps (not copies).
* *
* @param map the map to decorate, must not be null * @param map the map to decorate, must not be null
* @param value the value to use * @param defaultValueTransformer the value transformer to use
* @throws IllegalArgumentException if map or transformer is null * @throws IllegalArgumentException if map or transformer is null
* TODO does not check for null transformer: fix code or Javadoc
*/ */
protected DefaultedMap(Map<K, V> map, Transformer<? super K, ? extends V> defaultValueTransformer) { protected DefaultedMap(Map<K, V> map, Transformer<? super K, ? extends V> defaultValueTransformer) {
super(map); super(map);

View File

@ -27,7 +27,7 @@ import org.apache.commons.collections.ResettableIterator;
* Adapts a Map entrySet to the MapIterator interface. * Adapts a Map entrySet to the MapIterator interface.
* *
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
* @version $Revision$ $Date$ * @version $Revision$ $Date$
* *
* @author Matt Benson * @author Matt Benson

View File

@ -62,7 +62,7 @@ import org.apache.commons.collections.list.UnmodifiableList;
* {@link CaseInsensitiveMap}, or similar maps that violate the general * {@link CaseInsensitiveMap}, or similar maps that violate the general
* contract of {@link java.util.Map}.</strong> The <code>ListOrderedMap</code> * contract of {@link java.util.Map}.</strong> The <code>ListOrderedMap</code>
* (or, more precisely, the underlying <code>List</code>) is relying on * (or, more precisely, the underlying <code>List</code>) is relying on
* {@link Object#java.lang.equals(Object) equals()}. This is fine, as long as the * {@link Object#equals(Object) equals()}. This is fine, as long as the
* decorated <code>Map</code> is also based on {@link Object#equals(Object) equals()}, * decorated <code>Map</code> is also based on {@link Object#equals(Object) equals()},
* and {@link Object#hashCode() hashCode()}, which {@link IdentityMap}, and * and {@link Object#hashCode() hashCode()}, which {@link IdentityMap}, and
* {@link CaseInsensitiveMap} don't: The former uses <code>==</code>, and * {@link CaseInsensitiveMap} don't: The former uses <code>==</code>, and

View File

@ -41,8 +41,9 @@ import org.apache.commons.collections.AbstractTestObject;
* <p> * <p>
* You should create a concrete subclass of this class to test any custom * You should create a concrete subclass of this class to test any custom
* {@link Collection} implementation. At minimum, you'll have to * {@link Collection} implementation. At minimum, you'll have to
* implement the {@link #makeCollection()} method. You might want to * implement the @{@link #makeObject()}, {@link #makeConfirmedCollection()}
* override some of the additional public methods as well: * and {@link #makeConfirmedFullCollection()} methods.
* You might want to override some of the additional public methods as well:
* <p> * <p>
* <b>Element Population Methods</b> * <b>Element Population Methods</b>
* <p> * <p>

View File

@ -284,7 +284,7 @@ public class TestFilterListIterator extends TestCase {
} }
/** /**
* Test for {@link https://issues.apache.org/jira/browse/COLLECTIONS-360 COLLECTIONS-360}. * Test for {@link "https://issues.apache.org/jira/browse/COLLECTIONS-360 COLLECTIONS-360"}
*/ */
public void testCollections360() throws Throwable { public void testCollections360() throws Throwable {
Collection<Predicate<Object>> var7 = new GrowthList<Predicate<Object>>(); Collection<Predicate<Object>> var7 = new GrowthList<Predicate<Object>>();

View File

@ -32,7 +32,7 @@ import org.apache.commons.collections.map.HashedMap;
* Tests for {@link TransformedMap} * Tests for {@link TransformedMap}
* *
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version * TODO fix version
* @version $Revision$ $Date$ * @version $Revision$ $Date$
* *
* @author Stephen Colebourne * @author Stephen Colebourne

View File

@ -29,7 +29,7 @@ import org.apache.commons.collections.functors.NOPTransformer;
* Tests for {@link TransformedMap} * Tests for {@link TransformedMap}
* *
* @since Commons Collections 5 * @since Commons Collections 5
* @TODO fix version, add Serialization tests * TODO fix version, add Serialization tests
* @version $Revision$ $Date$ * @version $Revision$ $Date$
* *
* @author Stephen Colebourne * @author Stephen Colebourne