Javadoc: Add missing @param tags for generics.
This commit is contained in:
parent
8e09f5f538
commit
5d756cebd7
|
@ -28,6 +28,7 @@ import java.util.Collection;
|
||||||
* @see CollectionUtils#isFull
|
* @see CollectionUtils#isFull
|
||||||
* @see CollectionUtils#maxSize
|
* @see CollectionUtils#maxSize
|
||||||
*
|
*
|
||||||
|
* @param <E> the type of elements in this collection
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public interface BoundedCollection<E> extends Collection<E> {
|
public interface BoundedCollection<E> extends Collection<E> {
|
||||||
|
|
|
@ -23,6 +23,8 @@ package org.apache.commons.collections4;
|
||||||
* maximum number of elements. This interface allows the querying of details
|
* maximum number of elements. This interface allows the querying of details
|
||||||
* associated with the maximum number of elements.
|
* associated with the maximum number of elements.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public interface BoundedMap<K, V> extends IterableMap<K, V> {
|
public interface BoundedMap<K, V> extends IterableMap<K, V> {
|
||||||
|
|
|
@ -33,10 +33,11 @@ import java.util.Map;
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @param <K> the type of the keys in the map
|
* @param <K> the type of the keys in this map
|
||||||
* @param <V> the type of the values in the map
|
* @param <V> the type of the values in this map
|
||||||
*
|
*
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public interface IterableMap<K, V> extends Map<K, V>, Put<K, V>, IterableGet<K, V> {
|
public interface IterableMap<K, V> extends Map<K, V>, Put<K, V>, IterableGet<K, V> {
|
||||||
|
// empty
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,9 @@ import java.util.Collection;
|
||||||
* These were added solely for documentation purposes and do not change the interface
|
* These were added solely for documentation purposes and do not change the interface
|
||||||
* as they were defined in the superinterface <code>Map</code> anyway.
|
* as they were defined in the superinterface <code>Map</code> anyway.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
|
*
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
* @deprecated since 4.1, use {@link MultiValuedMap} instead
|
* @deprecated since 4.1, use {@link MultiValuedMap} instead
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -22,6 +22,8 @@ import java.util.SortedMap;
|
||||||
* Defines the interface for a prefix tree, an ordered tree data structure. For
|
* Defines the interface for a prefix tree, an ordered tree data structure. For
|
||||||
* more information, see <a href="http://en.wikipedia.org/wiki/Trie">Tries</a>.
|
* more information, see <a href="http://en.wikipedia.org/wiki/Trie">Tries</a>.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
public interface Trie<K, V> extends IterableSortedMap<K, V> {
|
public interface Trie<K, V> extends IterableSortedMap<K, V> {
|
||||||
|
|
|
@ -34,6 +34,8 @@ import org.apache.commons.collections4.map.AbstractMapDecorator;
|
||||||
* it would provide a loophole around the validation.
|
* it would provide a loophole around the validation.
|
||||||
* But, you might want that loophole, so this class is kept simple.
|
* But, you might want that loophole, so this class is kept simple.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractBidiMapDecorator<K, V>
|
public abstract class AbstractBidiMapDecorator<K, V>
|
||||||
|
|
|
@ -31,6 +31,8 @@ import org.apache.commons.collections4.OrderedMapIterator;
|
||||||
* it would provide a loophole around the validation.
|
* it would provide a loophole around the validation.
|
||||||
* But, you might want that loophole, so this class is kept simple.
|
* But, you might want that loophole, so this class is kept simple.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractOrderedBidiMapDecorator<K, V>
|
public abstract class AbstractOrderedBidiMapDecorator<K, V>
|
||||||
|
|
|
@ -33,6 +33,8 @@ import org.apache.commons.collections4.SortedBidiMap;
|
||||||
* it would provide a loophole around the validation.
|
* it would provide a loophole around the validation.
|
||||||
* But, you might want that loophole, so this class is kept simple.
|
* But, you might want that loophole, so this class is kept simple.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractSortedBidiMapDecorator<K, V>
|
public abstract class AbstractSortedBidiMapDecorator<K, V>
|
||||||
|
|
|
@ -49,6 +49,8 @@ import org.apache.commons.collections4.map.AbstractSortedMapDecorator;
|
||||||
* NOTE: From Commons Collections 3.1, all subclasses will use {@link TreeMap}
|
* NOTE: From Commons Collections 3.1, all subclasses will use {@link TreeMap}
|
||||||
* and the flawed <code>createMap</code> method is ignored.
|
* and the flawed <code>createMap</code> method is ignored.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
|
public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
|
||||||
|
|
|
@ -72,6 +72,9 @@ import org.apache.commons.collections4.keyvalue.UnmodifiableMapEntry;
|
||||||
* not allow setValue() and will throw an
|
* not allow setValue() and will throw an
|
||||||
* UnsupportedOperationException on attempts to call that method.
|
* UnsupportedOperationException on attempts to call that method.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
|
*
|
||||||
* @since 3.0 (previously DoubleOrderedMap v2.0)
|
* @since 3.0 (previously DoubleOrderedMap v2.0)
|
||||||
*/
|
*/
|
||||||
public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>>
|
public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>>
|
||||||
|
|
|
@ -31,6 +31,8 @@ import org.apache.commons.collections4.set.UnmodifiableSet;
|
||||||
* <p>
|
* <p>
|
||||||
* Attempts to modify it will result in an UnsupportedOperationException.
|
* Attempts to modify it will result in an UnsupportedOperationException.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public final class UnmodifiableBidiMap<K, V>
|
public final class UnmodifiableBidiMap<K, V>
|
||||||
|
|
|
@ -31,6 +31,8 @@ import org.apache.commons.collections4.set.UnmodifiableSet;
|
||||||
* <p>
|
* <p>
|
||||||
* Attempts to modify it will result in an UnsupportedOperationException.
|
* Attempts to modify it will result in an UnsupportedOperationException.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public final class UnmodifiableOrderedBidiMap<K, V>
|
public final class UnmodifiableOrderedBidiMap<K, V>
|
||||||
|
|
|
@ -33,6 +33,8 @@ import org.apache.commons.collections4.set.UnmodifiableSet;
|
||||||
* <p>
|
* <p>
|
||||||
* Attempts to modify it will result in an {@link UnsupportedOperationException}.
|
* Attempts to modify it will result in an {@link UnsupportedOperationException}.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public final class UnmodifiableSortedBidiMap<K, V>
|
public final class UnmodifiableSortedBidiMap<K, V>
|
||||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator;
|
||||||
* <p>
|
* <p>
|
||||||
* Attempts to modify it will result in an UnsupportedOperationException.
|
* Attempts to modify it will result in an UnsupportedOperationException.
|
||||||
*
|
*
|
||||||
|
* @param <E> the type of elements in this collection
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public final class UnmodifiableBoundedCollection<E> extends AbstractCollectionDecorator<E>
|
public final class UnmodifiableBoundedCollection<E> extends AbstractCollectionDecorator<E>
|
||||||
|
|
|
@ -33,6 +33,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <E> the type of elements in this collection
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class FixedSizeList<E>
|
public class FixedSizeList<E>
|
||||||
|
|
|
@ -52,6 +52,8 @@ import org.apache.commons.collections4.iterators.EmptyMapIterator;
|
||||||
* This is to provide backwards compatibility for ReferenceMap between v3.0 and v3.1.
|
* This is to provide backwards compatibility for ReferenceMap between v3.0 and v3.1.
|
||||||
* This extends clause will be removed in v5.0.
|
* This extends clause will be removed in v5.0.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class AbstractHashedMap<K, V> extends AbstractMap<K, V> implements IterableMap<K, V> {
|
public class AbstractHashedMap<K, V> extends AbstractMap<K, V> implements IterableMap<K, V> {
|
||||||
|
|
|
@ -22,6 +22,8 @@ import org.apache.commons.collections4.MapIterator;
|
||||||
/**
|
/**
|
||||||
* Provide a basic {@link IterableMap} implementation.
|
* Provide a basic {@link IterableMap} implementation.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractIterableMap<K, V> implements IterableMap<K, V> {
|
public abstract class AbstractIterableMap<K, V> implements IterableMap<K, V> {
|
||||||
|
|
|
@ -56,6 +56,8 @@ import org.apache.commons.collections4.iterators.EmptyOrderedMapIterator;
|
||||||
* The implementation is also designed to be subclassed, with lots of useful
|
* The implementation is also designed to be subclassed, with lots of useful
|
||||||
* methods exposed.
|
* methods exposed.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractLinkedMap<K, V> extends AbstractHashedMap<K, V> implements OrderedMap<K, V> {
|
public abstract class AbstractLinkedMap<K, V> extends AbstractHashedMap<K, V> implements OrderedMap<K, V> {
|
||||||
|
|
|
@ -31,6 +31,8 @@ import org.apache.commons.collections4.OrderedMapIterator;
|
||||||
* it would provide a loophole around the validation.
|
* it would provide a loophole around the validation.
|
||||||
* But, you might want that loophole, so this class is kept simple.
|
* But, you might want that loophole, so this class is kept simple.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractOrderedMapDecorator<K, V> extends AbstractMapDecorator<K, V>
|
public abstract class AbstractOrderedMapDecorator<K, V> extends AbstractMapDecorator<K, V>
|
||||||
|
|
|
@ -75,6 +75,9 @@ import org.apache.commons.collections4.keyvalue.DefaultMapEntry;
|
||||||
* You can use {@link java.util.Collections#synchronizedMap} to
|
* You can use {@link java.util.Collections#synchronizedMap} to
|
||||||
* provide synchronized access to a <code>ReferenceMap</code>.
|
* provide synchronized access to a <code>ReferenceMap</code>.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
|
*
|
||||||
* @see java.lang.ref.Reference
|
* @see java.lang.ref.Reference
|
||||||
* @since 3.1 (extracted from ReferenceMap in 3.0)
|
* @since 3.1 (extracted from ReferenceMap in 3.0)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -59,6 +59,8 @@ import java.util.Map;
|
||||||
* exceptions when accessed by concurrent threads without synchronization.
|
* exceptions when accessed by concurrent threads without synchronization.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class CaseInsensitiveMap<K, V> extends AbstractHashedMap<K, V> implements Serializable, Cloneable {
|
public class CaseInsensitiveMap<K, V> extends AbstractHashedMap<K, V> implements Serializable, Cloneable {
|
||||||
|
|
|
@ -39,6 +39,8 @@ import org.apache.commons.collections4.collection.CompositeCollection;
|
||||||
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
||||||
* exceptions when accessed by concurrent threads without synchronization.
|
* exceptions when accessed by concurrent threads without synchronization.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class CompositeMap<K, V> extends AbstractIterableMap<K, V> implements Serializable {
|
public class CompositeMap<K, V> extends AbstractIterableMap<K, V> implements Serializable {
|
||||||
|
|
|
@ -56,8 +56,10 @@ import org.apache.commons.collections4.functors.FactoryTransformer;
|
||||||
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
||||||
* exceptions when accessed by concurrent threads without synchronization.
|
* exceptions when accessed by concurrent threads without synchronization.
|
||||||
*
|
*
|
||||||
* @since 3.2
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
*
|
*
|
||||||
|
* @since 3.2
|
||||||
* @see LazyMap
|
* @see LazyMap
|
||||||
*/
|
*/
|
||||||
public class DefaultedMap<K, V> extends AbstractMapDecorator<K, V> implements Serializable {
|
public class DefaultedMap<K, V> extends AbstractMapDecorator<K, V> implements Serializable {
|
||||||
|
|
|
@ -49,6 +49,8 @@ import org.apache.commons.collections4.set.UnmodifiableSet;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class FixedSizeMap<K, V>
|
public class FixedSizeMap<K, V>
|
||||||
|
|
|
@ -51,6 +51,8 @@ import org.apache.commons.collections4.set.UnmodifiableSet;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class FixedSizeSortedMap<K, V>
|
public class FixedSizeSortedMap<K, V>
|
||||||
|
|
|
@ -67,6 +67,8 @@ import org.apache.commons.collections4.iterators.EmptyMapIterator;
|
||||||
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
||||||
* exceptions when accessed by concurrent threads without synchronization.
|
* exceptions when accessed by concurrent threads without synchronization.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class Flat3Map<K, V> implements IterableMap<K, V>, Serializable, Cloneable {
|
public class Flat3Map<K, V> implements IterableMap<K, V>, Serializable, Cloneable {
|
||||||
|
|
|
@ -36,6 +36,8 @@ import java.util.Map;
|
||||||
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
||||||
* exceptions when accessed by concurrent threads without synchronization.
|
* exceptions when accessed by concurrent threads without synchronization.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class HashedMap<K, V>
|
public class HashedMap<K, V>
|
||||||
|
|
|
@ -54,6 +54,8 @@ import org.apache.commons.collections4.BoundedMap;
|
||||||
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
||||||
* <code>NullPointerException</code>'s when accessed by concurrent threads.
|
* <code>NullPointerException</code>'s when accessed by concurrent threads.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0 (previously in main package v1.0)
|
* @since 3.0 (previously in main package v1.0)
|
||||||
*/
|
*/
|
||||||
public class LRUMap<K, V>
|
public class LRUMap<K, V>
|
||||||
|
|
|
@ -56,6 +56,8 @@ import org.apache.commons.collections4.functors.FactoryTransformer;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class LazyMap<K, V> extends AbstractMapDecorator<K, V> implements Serializable {
|
public class LazyMap<K, V> extends AbstractMapDecorator<K, V> implements Serializable {
|
||||||
|
|
|
@ -53,6 +53,8 @@ import org.apache.commons.collections4.Transformer;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class LazySortedMap<K,V> extends LazyMap<K,V> implements SortedMap<K,V> {
|
public class LazySortedMap<K,V> extends LazyMap<K,V> implements SortedMap<K,V> {
|
||||||
|
|
|
@ -57,6 +57,8 @@ import org.apache.commons.collections4.list.UnmodifiableList;
|
||||||
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
* using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
|
||||||
* exceptions when accessed by concurrent threads without synchronization.
|
* exceptions when accessed by concurrent threads without synchronization.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class LinkedMap<K, V> extends AbstractLinkedMap<K, V> implements Serializable, Cloneable {
|
public class LinkedMap<K, V> extends AbstractLinkedMap<K, V> implements Serializable, Cloneable {
|
||||||
|
|
|
@ -72,6 +72,8 @@ import org.apache.commons.collections4.list.UnmodifiableList;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is {@link Serializable} starting with Commons Collections 3.1.
|
* This class is {@link Serializable} starting with Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class ListOrderedMap<K, V>
|
public class ListOrderedMap<K, V>
|
||||||
|
|
|
@ -71,6 +71,8 @@ import org.apache.commons.collections4.keyvalue.MultiKey;
|
||||||
* appropriate synchronization. This class may throw exceptions when accessed
|
* appropriate synchronization. This class may throw exceptions when accessed
|
||||||
* by concurrent threads without synchronization.
|
* by concurrent threads without synchronization.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
*/
|
*/
|
||||||
public class MultiKeyMap<K, V> extends AbstractMapDecorator<MultiKey<? extends K>, V>
|
public class MultiKeyMap<K, V> extends AbstractMapDecorator<MultiKey<? extends K>, V>
|
||||||
|
|
|
@ -59,6 +59,8 @@ import org.apache.commons.collections4.iterators.TransformIterator;
|
||||||
* appropriate synchronization. This class may throw exceptions when accessed
|
* appropriate synchronization. This class may throw exceptions when accessed
|
||||||
* by concurrent threads without synchronization.
|
* by concurrent threads without synchronization.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.2
|
* @since 3.2
|
||||||
* @deprecated since 4.1, use {@link org.apache.commons.collections4.MultiValuedMap MultiValuedMap} instead
|
* @deprecated since 4.1, use {@link org.apache.commons.collections4.MultiValuedMap MultiValuedMap} instead
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -55,8 +55,8 @@ import java.util.concurrent.TimeUnit;
|
||||||
* synchronization.
|
* synchronization.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param <K> the type of the keys in the map
|
* @param <K> the type of the keys in this map
|
||||||
* @param <V> the type of the values in the map
|
* @param <V> the type of the values in this map
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
public class PassiveExpiringMap<K, V>
|
public class PassiveExpiringMap<K, V>
|
||||||
|
|
|
@ -44,6 +44,8 @@ import org.apache.commons.collections4.Predicate;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class PredicatedMap<K, V>
|
public class PredicatedMap<K, V>
|
||||||
|
|
|
@ -45,6 +45,8 @@ import org.apache.commons.collections4.Predicate;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class PredicatedSortedMap<K, V> extends PredicatedMap<K, V> implements SortedMap<K, V> {
|
public class PredicatedSortedMap<K, V> extends PredicatedMap<K, V> implements SortedMap<K, V> {
|
||||||
|
|
|
@ -70,8 +70,10 @@ import java.lang.ref.Reference;
|
||||||
* exceptions when accessed by concurrent threads without synchronization.
|
* exceptions when accessed by concurrent threads without synchronization.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @see java.lang.ref.Reference
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
*
|
*
|
||||||
|
* @see java.lang.ref.Reference
|
||||||
* @since 3.0 (previously in main package v2.1)
|
* @since 3.0 (previously in main package v2.1)
|
||||||
*/
|
*/
|
||||||
public class ReferenceIdentityMap<K, V> extends AbstractReferenceMap<K, V> implements Serializable {
|
public class ReferenceIdentityMap<K, V> extends AbstractReferenceMap<K, V> implements Serializable {
|
||||||
|
|
|
@ -53,6 +53,8 @@ import org.apache.commons.collections4.keyvalue.TiedMapEntry;
|
||||||
* <li>the <code>KeyValue</code> interface (just cast - no object creation)
|
* <li>the <code>KeyValue</code> interface (just cast - no object creation)
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
*/
|
*/
|
||||||
public class SingletonMap<K, V>
|
public class SingletonMap<K, V>
|
||||||
|
|
|
@ -90,6 +90,8 @@ import org.apache.commons.collections4.KeyValue;
|
||||||
* iterations, or if you can make your own guarantees about how bulk
|
* iterations, or if you can make your own guarantees about how bulk
|
||||||
* operations will affect the map.<p>
|
* operations will affect the map.<p>
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0 (previously in main package v2.1)
|
* @since 3.0 (previously in main package v2.1)
|
||||||
*/
|
*/
|
||||||
public final class StaticBucketMap<K, V> extends AbstractIterableMap<K, V> {
|
public final class StaticBucketMap<K, V> extends AbstractIterableMap<K, V> {
|
||||||
|
|
|
@ -40,8 +40,11 @@ import org.apache.commons.collections4.Transformer;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
* <p>
|
* <p>
|
||||||
* @see org.apache.commons.collections4.splitmap.TransformedSplitMap
|
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
|
*
|
||||||
|
* @see org.apache.commons.collections4.splitmap.TransformedSplitMap
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class TransformedMap<K, V>
|
public class TransformedMap<K, V>
|
||||||
|
|
|
@ -38,6 +38,8 @@ import org.apache.commons.collections4.Transformer;
|
||||||
* <p>
|
* <p>
|
||||||
* This class is Serializable from Commons Collections 3.1.
|
* This class is Serializable from Commons Collections 3.1.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class TransformedSortedMap<K, V>
|
public class TransformedSortedMap<K, V>
|
||||||
|
|
|
@ -39,6 +39,8 @@ import org.apache.commons.collections4.set.UnmodifiableSet;
|
||||||
* <p>
|
* <p>
|
||||||
* Attempts to modify it will result in an UnsupportedOperationException.
|
* Attempts to modify it will result in an UnsupportedOperationException.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public final class UnmodifiableMap<K, V>
|
public final class UnmodifiableMap<K, V>
|
||||||
|
|
|
@ -38,6 +38,8 @@ import org.apache.commons.collections4.set.UnmodifiableSet;
|
||||||
* <p>
|
* <p>
|
||||||
* Attempts to modify it will result in an UnsupportedOperationException.
|
* Attempts to modify it will result in an UnsupportedOperationException.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public final class UnmodifiableOrderedMap<K, V> extends AbstractOrderedMapDecorator<K, V> implements
|
public final class UnmodifiableOrderedMap<K, V> extends AbstractOrderedMapDecorator<K, V> implements
|
||||||
|
|
|
@ -37,6 +37,8 @@ import org.apache.commons.collections4.set.UnmodifiableSet;
|
||||||
* <p>
|
* <p>
|
||||||
* Attempts to modify it will result in an UnsupportedOperationException.
|
* Attempts to modify it will result in an UnsupportedOperationException.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public final class UnmodifiableSortedMap<K, V>
|
public final class UnmodifiableSortedMap<K, V>
|
||||||
|
|
|
@ -43,6 +43,7 @@ import org.apache.commons.collections4.BoundedCollection;
|
||||||
* <p>
|
* <p>
|
||||||
* This queue prevents null objects from being added.
|
* This queue prevents null objects from being added.
|
||||||
*
|
*
|
||||||
|
* @param <E> the type of elements in this collection
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
public class CircularFifoQueue<E> extends AbstractCollection<E>
|
public class CircularFifoQueue<E> extends AbstractCollection<E>
|
||||||
|
|
|
@ -27,6 +27,8 @@ import org.apache.commons.collections4.Trie;
|
||||||
* This class provides some basic {@link Trie} functionality and
|
* This class provides some basic {@link Trie} functionality and
|
||||||
* utility methods for actual bitwise {@link Trie} implementations.
|
* utility methods for actual bitwise {@link Trie} implementations.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractBitwiseTrie<K, V> extends AbstractMap<K, V>
|
public abstract class AbstractBitwiseTrie<K, V> extends AbstractMap<K, V>
|
||||||
|
|
|
@ -51,6 +51,8 @@ import org.apache.commons.collections4.trie.analyzer.StringKeyAnalyzer;
|
||||||
* length & fixed length keys. Some methods, such as {@link #prefixMap(Object)}
|
* length & fixed length keys. Some methods, such as {@link #prefixMap(Object)}
|
||||||
* are suited only to variable length keys.
|
* are suited only to variable length keys.
|
||||||
*
|
*
|
||||||
|
* @param <E> the type of the values in this map
|
||||||
|
*
|
||||||
* @see <a href="http://en.wikipedia.org/wiki/Radix_tree">Radix Tree</a>
|
* @see <a href="http://en.wikipedia.org/wiki/Radix_tree">Radix Tree</a>
|
||||||
* @see <a href="http://www.csse.monash.edu.au/~lloyd/tildeAlgDS/Tree/PATRICIA">PATRICIA</a>
|
* @see <a href="http://www.csse.monash.edu.au/~lloyd/tildeAlgDS/Tree/PATRICIA">PATRICIA</a>
|
||||||
* @see <a href="http://www.imperialviolet.org/binary/critbit.pdf">Crit-Bit Tree</a>
|
* @see <a href="http://www.imperialviolet.org/binary/critbit.pdf">Crit-Bit Tree</a>
|
||||||
|
|
|
@ -32,6 +32,8 @@ import org.apache.commons.collections4.iterators.UnmodifiableOrderedMapIterator;
|
||||||
/**
|
/**
|
||||||
* An unmodifiable {@link Trie}.
|
* An unmodifiable {@link Trie}.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
public class UnmodifiableTrie<K, V> implements Trie<K, V>, Serializable, Unmodifiable {
|
public class UnmodifiableTrie<K, V> implements Trie<K, V>, Serializable, Unmodifiable {
|
||||||
|
|
|
@ -24,6 +24,8 @@ import org.apache.commons.collections4.OrderedBidiMap;
|
||||||
/**
|
/**
|
||||||
* Test class for AbstractOrderedBidiMapDecorator.
|
* Test class for AbstractOrderedBidiMapDecorator.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
*/
|
*/
|
||||||
public class AbstractOrderedBidiMapDecoratorTest<K, V>
|
public class AbstractOrderedBidiMapDecoratorTest<K, V>
|
||||||
extends AbstractOrderedBidiMapTest<K, V> {
|
extends AbstractOrderedBidiMapTest<K, V> {
|
||||||
|
|
|
@ -40,6 +40,8 @@ import java.util.Map;
|
||||||
* From 4.0, this class is replaced by java.util.IdentityHashMap but kept as a
|
* From 4.0, this class is replaced by java.util.IdentityHashMap but kept as a
|
||||||
* test-class because it is still used by the ReferenceIdentityMapTest.
|
* test-class because it is still used by the ReferenceIdentityMapTest.
|
||||||
*
|
*
|
||||||
|
* @param <K> the type of the keys in this map
|
||||||
|
* @param <V> the type of the values in this map
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public class IdentityMap<K, V>
|
public class IdentityMap<K, V>
|
||||||
|
|
Loading…
Reference in New Issue