diff --git a/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java b/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java index ce536f862..c8d3c4ad0 100644 --- a/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java @@ -72,7 +72,7 @@ public class ListOrderedSet * @return a new ordered set * @throws IllegalArgumentException if set or list is null * @throws IllegalArgumentException if either the set or list is not empty - * @since 3.1 + * @since 4.0 */ public static ListOrderedSet listOrderedSet(final Set set, final List list) { if (set == null) { @@ -96,6 +96,7 @@ public class ListOrderedSet * @param set the set to decorate, must not be null * @return a new ordered set * @throws IllegalArgumentException if set is null + * @since 4.0 */ public static ListOrderedSet listOrderedSet(final Set set) { return new ListOrderedSet(set); @@ -114,6 +115,7 @@ public class ListOrderedSet * @param list the list to decorate, must not be null * @return a new ordered set * @throws IllegalArgumentException if list is null + * @since 4.0 */ public static ListOrderedSet listOrderedSet(final List list) { if (list == null) { diff --git a/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java b/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java index 04d8529c6..601a6d286 100644 --- a/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java @@ -54,6 +54,7 @@ public final class MapBackedSet implements Set, Serializable { * @param map the map to decorate, must not be null * @return a new map backed set * @throws IllegalArgumentException if set is null + * @since 4.0 */ public static MapBackedSet mapBackedSet(final Map map) { return mapBackedSet(map, null); @@ -68,6 +69,7 @@ public final class MapBackedSet implements Set, Serializable { * @param dummyValue the dummy value to use * @return a new map backed set * @throws IllegalArgumentException if map is null + * @since 4.0 */ public static MapBackedSet mapBackedSet(final Map map, final V dummyValue) { if (map == null) { diff --git a/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java b/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java index 4828e8ffb..af048f9e6 100644 --- a/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java @@ -54,6 +54,7 @@ public class PredicatedSet extends PredicatedCollection implements Set * @return a decorated set * @throws IllegalArgumentException if set or predicate is null * @throws IllegalArgumentException if the set contains invalid elements + * @since 4.0 */ public static PredicatedSet predicatedSet(final Set set, final Predicate predicate) { return new PredicatedSet(set, predicate); diff --git a/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java b/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java index 7fc404758..bf7d43011 100644 --- a/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java @@ -54,6 +54,7 @@ public class PredicatedSortedSet extends PredicatedSet implements SortedSe * @return a new predicated sorted set. * @throws IllegalArgumentException if set or predicate is null * @throws IllegalArgumentException if the set contains invalid elements + * @since 4.0 */ public static PredicatedSortedSet predicatedSortedSet(final SortedSet set, final Predicate predicate) { diff --git a/src/main/java/org/apache/commons/collections4/set/TransformedSet.java b/src/main/java/org/apache/commons/collections4/set/TransformedSet.java index 28d9384d0..cf5db63a7 100644 --- a/src/main/java/org/apache/commons/collections4/set/TransformedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/TransformedSet.java @@ -51,6 +51,7 @@ public class TransformedSet extends TransformedCollection implements Set TransformedSet transformingSet(final Set set, final Transformer transformer) { diff --git a/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java b/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java index 4379828c8..1dac60c58 100644 --- a/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java @@ -51,6 +51,7 @@ public class TransformedSortedSet extends TransformedSet implements Sorted * @param transformer the transformer to use for conversion, must not be null * @return a new transformed {@link SortedSet} * @throws IllegalArgumentException if set or transformer is null + * @since 4.0 */ public static TransformedSortedSet transformingSortedSet(final SortedSet set, final Transformer transformer) { diff --git a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java index 5f094f944..855315194 100644 --- a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java +++ b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java @@ -47,6 +47,7 @@ public final class UnmodifiableSet * @param set the set to decorate, must not be null * @return a new unmodifiable set * @throws IllegalArgumentException if set is null + * @since 4.0 */ public static Set unmodifiableSet(final Set set) { if (set instanceof Unmodifiable) { diff --git a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java index db48ca0ac..aa60bfd57 100644 --- a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java @@ -51,6 +51,7 @@ public final class UnmodifiableSortedSet * @param set the set to decorate, must not be null * @return a new unmodifiable {@link SortedSet} * @throws IllegalArgumentException if set is null + * @since 4.0 */ public static SortedSet unmodifiableSortedSet(final SortedSet set) { if (set instanceof Unmodifiable) {