diff --git a/src/main/java/org/apache/commons/collections4/map/DefaultedMap.java b/src/main/java/org/apache/commons/collections4/map/DefaultedMap.java index 7b0da586f..369f918e9 100644 --- a/src/main/java/org/apache/commons/collections4/map/DefaultedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/DefaultedMap.java @@ -81,6 +81,7 @@ public class DefaultedMap extends AbstractMapDecorator implements Se * @param defaultValue the default value to return when the key is not found * @return a new defaulting map * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static DefaultedMap defaultedMap(final Map map, final V defaultValue) { return new DefaultedMap(map, ConstantTransformer.constantTransformer(defaultValue)); @@ -98,6 +99,7 @@ public class DefaultedMap extends AbstractMapDecorator implements Se * @param factory the factory to use to create entries, must not be null * @return a new defaulting map * @throws IllegalArgumentException if map or factory is null + * @since 4.0 */ public static DefaultedMap defaultedMap(final Map map, final Factory factory) { if (factory == null) { @@ -119,6 +121,7 @@ public class DefaultedMap extends AbstractMapDecorator implements Se * @param transformer the transformer to use as a factory to create entries, must not be null * @return a new defaulting map * @throws IllegalArgumentException if map or factory is null + * @since 4.0 */ public static Map defaultedMap(final Map map, final Transformer transformer) { diff --git a/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java b/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java index e94f66a01..c603bf6af 100644 --- a/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java +++ b/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java @@ -67,6 +67,7 @@ public class FixedSizeMap * @param map the map to decorate, must not be null * @return a new fixed size map * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static FixedSizeMap fixedSizeMap(final Map map) { return new FixedSizeMap(map); diff --git a/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java b/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java index fa2989c24..62565a3cd 100644 --- a/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java @@ -69,6 +69,7 @@ public class FixedSizeSortedMap * @param map the map to decorate, must not be null * @return a new fixed size sorted map * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static FixedSizeSortedMap fixedSizeSortedMap(final SortedMap map) { return new FixedSizeSortedMap(map); diff --git a/src/main/java/org/apache/commons/collections4/map/LazyMap.java b/src/main/java/org/apache/commons/collections4/map/LazyMap.java index ea96d5c2f..4d730ae2a 100644 --- a/src/main/java/org/apache/commons/collections4/map/LazyMap.java +++ b/src/main/java/org/apache/commons/collections4/map/LazyMap.java @@ -76,6 +76,7 @@ public class LazyMap extends AbstractMapDecorator implements Map LazyMap lazyMap(final Map map, final Factory< ? extends V> factory) { return new LazyMap(map, factory); @@ -90,6 +91,7 @@ public class LazyMap extends AbstractMapDecorator implements Map LazyMap lazyMap(final Map map, final Transformer factory) { return new LazyMap(map, factory); diff --git a/src/main/java/org/apache/commons/collections4/map/LazySortedMap.java b/src/main/java/org/apache/commons/collections4/map/LazySortedMap.java index dc65a8387..099e3936b 100644 --- a/src/main/java/org/apache/commons/collections4/map/LazySortedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/LazySortedMap.java @@ -70,6 +70,7 @@ public class LazySortedMap extends LazyMap implements SortedMap { * @param factory the factory to use, must not be null * @return a new lazy sorted map * @throws IllegalArgumentException if map or factory is null + * @since 4.0 */ public static LazySortedMap lazySortedMap(final SortedMap map, final Factory factory) { @@ -85,6 +86,7 @@ public class LazySortedMap extends LazyMap implements SortedMap { * @param factory the factory to use, must not be null * @return a new lazy sorted map * @throws IllegalArgumentException if map or factory is null + * @since 4.0 */ public static LazySortedMap lazySortedMap(final SortedMap map, final Transformer factory) { diff --git a/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java b/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java index 9de62ed0b..289711424 100644 --- a/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java @@ -95,6 +95,7 @@ public class ListOrderedMap * @param map the map to decorate, must not be null * @return a new list ordered map * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static ListOrderedMap listOrderedMap(final Map map) { return new ListOrderedMap(map); diff --git a/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java b/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java index e9fc72ba7..fedd84229 100644 --- a/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java +++ b/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java @@ -91,6 +91,7 @@ public class MultiKeyMap extends AbstractMapDecorator MultiKeyMap multiKeyMap(final AbstractHashedMap, V> map) { if (map == null) { diff --git a/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java b/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java index c4f1bf451..7125b3a93 100644 --- a/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java +++ b/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java @@ -81,6 +81,7 @@ public class MultiValueMap extends AbstractMapDecorator impleme * @param the value type * @param map the map to wrap * @return a new multi-value map + * @since 4.0 */ @SuppressWarnings({ "unchecked", "rawtypes" }) public static MultiValueMap multiValueMap(final Map> map) { @@ -97,6 +98,7 @@ public class MultiValueMap extends AbstractMapDecorator impleme * @param map the map to wrap * @param collectionClass the type of the collection class * @return a new multi-value map + * @since 4.0 */ public static > MultiValueMap multiValueMap(final Map map, final Class collectionClass) { @@ -113,6 +115,7 @@ public class MultiValueMap extends AbstractMapDecorator impleme * @param map the map to decorate * @param collectionFactory the collection factory (must return a Collection object). * @return a new multi-value map + * @since 4.0 */ public static > MultiValueMap multiValueMap(final Map map, final Factory collectionFactory) { diff --git a/src/main/java/org/apache/commons/collections4/map/PredicatedMap.java b/src/main/java/org/apache/commons/collections4/map/PredicatedMap.java index ce1a85309..2440420a2 100644 --- a/src/main/java/org/apache/commons/collections4/map/PredicatedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/PredicatedMap.java @@ -73,6 +73,7 @@ public class PredicatedMap * @param valuePredicate the predicate to validate to values, null means no check * @return a new predicated map * @throws IllegalArgumentException if the map is null + * @since 4.0 */ public static PredicatedMap predicatedMap(final Map map, final Predicate keyPredicate, diff --git a/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java b/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java index 5091368d9..e9735b1cf 100644 --- a/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java @@ -61,6 +61,7 @@ public class PredicatedSortedMap extends PredicatedMap implements So * @param valuePredicate the predicate to validate to values, null means no check * @return a new predicated sorted map * @throws IllegalArgumentException if the map is null + * @since 4.0 */ public static PredicatedSortedMap predicatedSortedMap(final SortedMap map, final Predicate keyPredicate, final Predicate valuePredicate) { diff --git a/src/main/java/org/apache/commons/collections4/map/TransformedMap.java b/src/main/java/org/apache/commons/collections4/map/TransformedMap.java index 50f6f5d14..fd5755476 100644 --- a/src/main/java/org/apache/commons/collections4/map/TransformedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/TransformedMap.java @@ -71,6 +71,7 @@ public class TransformedMap * @param valueTransformer the transformer to use for value conversion, null means no transformation * @return a new transformed map * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static TransformedMap transformingMap(final Map map, final Transformer keyTransformer, @@ -93,7 +94,7 @@ public class TransformedMap * @param valueTransformer the transformer to use for value conversion, null means no transformation * @return a new transformed map * @throws IllegalArgumentException if map is null - * @since 3.2 + * @since 4.0 */ public static TransformedMap transformedMap(final Map map, final Transformer keyTransformer, diff --git a/src/main/java/org/apache/commons/collections4/map/TransformedSortedMap.java b/src/main/java/org/apache/commons/collections4/map/TransformedSortedMap.java index 79fa409a9..6254a4cd6 100644 --- a/src/main/java/org/apache/commons/collections4/map/TransformedSortedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/TransformedSortedMap.java @@ -61,6 +61,7 @@ public class TransformedSortedMap * @param valueTransformer the predicate to validate to values, null means no transformation * @return a new transformed sorted map * @throws IllegalArgumentException if the map is null + * @since 4.0 */ public static TransformedSortedMap transformingSortedMap(final SortedMap map, final Transformer keyTransformer, @@ -83,7 +84,7 @@ public class TransformedSortedMap * @param valueTransformer the transformer to use for value conversion, null means no transformation * @return a new transformed sorted map * @throws IllegalArgumentException if map is null - * @since 3.2 + * @since 4.0 */ public static TransformedSortedMap transformedSortedMap(final SortedMap map, final Transformer keyTransformer, diff --git a/src/main/java/org/apache/commons/collections4/map/UnmodifiableEntrySet.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableEntrySet.java index 196425238..fe9984d3d 100644 --- a/src/main/java/org/apache/commons/collections4/map/UnmodifiableEntrySet.java +++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableEntrySet.java @@ -49,6 +49,7 @@ public final class UnmodifiableEntrySet * @param set the set to decorate, must not be null * @return a new unmodifiable entry set * @throws IllegalArgumentException if set is null + * @since 4.0 */ public static Set> unmodifiableEntrySet(final Set> set) { if (set instanceof Unmodifiable) { diff --git a/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java index 2dc9f324c..42deec7f9 100644 --- a/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java +++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java @@ -57,6 +57,7 @@ public final class UnmodifiableMap * @param map the map to decorate, must not be null * @return a new unmodifiable map * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static Map unmodifiableMap(final Map map) { if (map instanceof Unmodifiable) { diff --git a/src/main/java/org/apache/commons/collections4/map/UnmodifiableOrderedMap.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableOrderedMap.java index 22c94057b..b58395cec 100644 --- a/src/main/java/org/apache/commons/collections4/map/UnmodifiableOrderedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableOrderedMap.java @@ -55,6 +55,7 @@ public final class UnmodifiableOrderedMap extends AbstractOrderedMapDecora * @param map the map to decorate, must not be null * @return a new ordered map * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static OrderedMap unmodifiableOrderedMap(final OrderedMap map) { if (map instanceof Unmodifiable) { diff --git a/src/main/java/org/apache/commons/collections4/map/UnmodifiableSortedMap.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableSortedMap.java index dfc48d7b5..a1897e4d2 100644 --- a/src/main/java/org/apache/commons/collections4/map/UnmodifiableSortedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableSortedMap.java @@ -55,6 +55,7 @@ public final class UnmodifiableSortedMap * @param map the map to decorate, must not be null * @return a new unmodifiable sorted map * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static SortedMap unmodifiableSortedMap(final SortedMap map) { if (map instanceof Unmodifiable) {