Skip to content

Commit f4d2b39

Browse files
committed
Javadoc
1 parent 34d04aa commit f4d2b39

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

src/main/java/org/apache/commons/collections4/CollectionUtils.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public static <T> boolean addIgnoreNull(final Collection<T> collection, final T
363363
* @param <O> the type of object that the {@link Iterable} may contain.
364364
* @return the number of occurrences of obj in coll
365365
* @throws NullPointerException if collection is null
366-
* @deprecated since 4.1, use {@link IterableUtils#frequency(Iterable, Object)} instead.
366+
* @deprecated Since 4.1, use {@link IterableUtils#frequency(Iterable, Object)} instead.
367367
* Be aware that the order of parameters has changed.
368368
*/
369369
@Deprecated
@@ -718,7 +718,7 @@ public static <T> boolean containsAny(final Collection<?> coll1, @SuppressWarnin
718718
* @param input the {@link Iterable} to get the input from, may be null
719719
* @param predicate the predicate to use, may be null
720720
* @return the number of matches for the predicate in the collection
721-
* @deprecated since 4.1, use {@link IterableUtils#countMatches(Iterable, Predicate)} instead
721+
* @deprecated Since 4.1, use {@link IterableUtils#countMatches(Iterable, Predicate)} instead
722722
*/
723723
@Deprecated
724724
public static <C> int countMatches(final Iterable<C> input, final Predicate<? super C> predicate) {
@@ -794,7 +794,7 @@ public static <T> Collection<T> emptyIfNull(final Collection<T> collection) {
794794
* @param input the {@link Iterable} to get the input from, may be null
795795
* @param predicate the predicate to use, may be null
796796
* @return true if at least one element of the collection matches the predicate
797-
* @deprecated since 4.1, use {@link IterableUtils#matchesAny(Iterable, Predicate)} instead
797+
* @deprecated Since 4.1, use {@link IterableUtils#matchesAny(Iterable, Predicate)} instead
798798
*/
799799
@Deprecated
800800
public static <C> boolean exists(final Iterable<C> input, final Predicate<? super C> predicate) {
@@ -875,7 +875,7 @@ public static <T> boolean filterInverse(final Iterable<T> collection, final Pred
875875
* @param collection the collection to search, may be null
876876
* @param predicate the predicate to use, may be null
877877
* @return the first element of the collection which matches the predicate or null if none could be found
878-
* @deprecated since 4.1, use {@link IterableUtils#find(Iterable, Predicate)} instead
878+
* @deprecated Since 4.1, use {@link IterableUtils#find(Iterable, Predicate)} instead
879879
*/
880880
@Deprecated
881881
public static <T> T find(final Iterable<T> collection, final Predicate<? super T> predicate) {
@@ -894,7 +894,7 @@ public static <T> T find(final Iterable<T> collection, final Predicate<? super T
894894
* @param closure the closure to perform, may be null
895895
* @return the last element in the collection, or null if either collection or closure is null
896896
* @since 4.0
897-
* @deprecated since 4.1, use {@link IterableUtils#forEachButLast(Iterable, Closure)} instead
897+
* @deprecated Since 4.1, use {@link IterableUtils#forEachButLast(Iterable, Closure)} instead
898898
*/
899899
@Deprecated
900900
public static <T, C extends Closure<? super T>> T forAllButLastDo(final Iterable<T> collection,
@@ -914,7 +914,7 @@ public static <T, C extends Closure<? super T>> T forAllButLastDo(final Iterable
914914
* @param closure the closure to perform, may be null
915915
* @return the last element in the collection, or null if either iterator or closure is null
916916
* @since 4.0
917-
* @deprecated since 4.1, use {@link IteratorUtils#forEachButLast(Iterator, Closure)} instead
917+
* @deprecated Since 4.1, use {@link IteratorUtils#forEachButLast(Iterator, Closure)} instead
918918
*/
919919
@Deprecated
920920
public static <T, C extends Closure<? super T>> T forAllButLastDo(final Iterator<T> iterator, final C closure) {
@@ -932,7 +932,7 @@ public static <T, C extends Closure<? super T>> T forAllButLastDo(final Iterator
932932
* @param collection the collection to get the input from, may be null
933933
* @param closure the closure to perform, may be null
934934
* @return closure
935-
* @deprecated since 4.1, use {@link IterableUtils#forEach(Iterable, Closure)} instead
935+
* @deprecated Since 4.1, use {@link IterableUtils#forEach(Iterable, Closure)} instead
936936
*/
937937
@Deprecated
938938
public static <T, C extends Closure<? super T>> C forAllDo(final Iterable<T> collection, final C closure) {
@@ -954,7 +954,7 @@ public static <T, C extends Closure<? super T>> C forAllDo(final Iterable<T> col
954954
* @param closure the closure to perform, may be null
955955
* @return closure
956956
* @since 4.0
957-
* @deprecated since 4.1, use {@link IteratorUtils#forEach(Iterator, Closure)} instead
957+
* @deprecated Since 4.1, use {@link IteratorUtils#forEach(Iterator, Closure)} instead
958958
*/
959959
@Deprecated
960960
public static <T, C extends Closure<? super T>> C forAllDo(final Iterator<T> iterator, final C closure) {
@@ -976,7 +976,7 @@ public static <T, C extends Closure<? super T>> C forAllDo(final Iterator<T> ite
976976
* @param <T> the type of object in the {@link Iterable}.
977977
* @return the object at the specified index
978978
* @throws IndexOutOfBoundsException if the index is invalid
979-
* @deprecated since 4.1, use {@code IterableUtils.get(Iterable, int)} instead
979+
* @deprecated Since 4.1, use {@code IterableUtils.get(Iterable, int)} instead
980980
*/
981981
@Deprecated
982982
public static <T> T get(final Iterable<T> iterable, final int index) {
@@ -999,7 +999,7 @@ public static <T> T get(final Iterable<T> iterable, final int index) {
999999
* @throws IndexOutOfBoundsException if the index is invalid
10001000
* @throws IllegalArgumentException if the object type is invalid
10011001
* @throws NullPointerException if iterator is null
1002-
* @deprecated since 4.1, use {@code IteratorUtils.get(Iterator, int)} instead
1002+
* @deprecated Since 4.1, use {@code IteratorUtils.get(Iterator, int)} instead
10031003
*/
10041004
@Deprecated
10051005
public static <T> T get(final Iterator<T> iterator, final int index) {
@@ -1361,7 +1361,7 @@ public static boolean isSubCollection(final Collection<?> a, final Collection<?>
13611361
* @return true if every element of the collection matches the predicate or if the
13621362
* collection is empty, false otherwise
13631363
* @since 4.0
1364-
* @deprecated since 4.1, use {@link IterableUtils#matchesAll(Iterable, Predicate)} instead
1364+
* @deprecated Since 4.1, use {@link IterableUtils#matchesAll(Iterable, Predicate)} instead
13651365
*/
13661366
@Deprecated
13671367
public static <C> boolean matchesAll(final Iterable<C> input, final Predicate<? super C> predicate) {
@@ -2020,7 +2020,7 @@ public static <O> Collection<O> subtract(final Iterable<? extends O> a,
20202020
* @param collection the collection to synchronize, must not be null
20212021
* @return a synchronized collection backed by the given collection
20222022
* @throws NullPointerException if the collection is null
2023-
* @deprecated since 4.1, use {@link java.util.Collections#synchronizedCollection(Collection)} instead
2023+
* @deprecated Since 4.1, use {@link java.util.Collections#synchronizedCollection(Collection)} instead
20242024
*/
20252025
@Deprecated
20262026
public static <C> Collection<C> synchronizedCollection(final Collection<C> collection) {
@@ -2127,7 +2127,7 @@ public static <O> Collection<O> union(final Iterable<? extends O> a, final Itera
21272127
* @param collection the collection to make unmodifiable, must not be null
21282128
* @return an unmodifiable collection backed by the given collection
21292129
* @throws NullPointerException if the collection is null
2130-
* @deprecated since 4.1, use {@link java.util.Collections#unmodifiableCollection(Collection)} instead
2130+
* @deprecated Since 4.1, use {@link java.util.Collections#unmodifiableCollection(Collection)} instead
21312131
*/
21322132
@Deprecated
21332133
public static <C> Collection<C> unmodifiableCollection(final Collection<? extends C> collection) {

src/main/java/org/apache/commons/collections4/MapUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ public static <K, V> SortedMap<K, V> lazySortedMap(final SortedMap<K, V> map,
14171417
* @return a multi-value map backed by the given map which returns ArrayLists of values.
14181418
* @see MultiValueMap
14191419
* @since 3.2
1420-
* @deprecated since 4.1, use {@link MultiValuedMap} instead
1420+
* @deprecated Since 4.1, use {@link MultiValuedMap} instead
14211421
*/
14221422
@Deprecated
14231423
public static <K, V> MultiValueMap<K, V> multiValueMap(final Map<K, ? super Collection<V>> map) {
@@ -1436,7 +1436,7 @@ public static <K, V> MultiValueMap<K, V> multiValueMap(final Map<K, ? super Coll
14361436
* @return a multi-value map backed by the given map which returns collections of the specified type
14371437
* @see MultiValueMap
14381438
* @since 3.2
1439-
* @deprecated since 4.1, use {@link MultiValuedMap} instead
1439+
* @deprecated Since 4.1, use {@link MultiValuedMap} instead
14401440
*/
14411441
@Deprecated
14421442
public static <K, V, C extends Collection<V>> MultiValueMap<K, V> multiValueMap(final Map<K, C> map,
@@ -1457,7 +1457,7 @@ public static <K, V, C extends Collection<V>> MultiValueMap<K, V> multiValueMap(
14571457
* factory
14581458
* @see MultiValueMap
14591459
* @since 3.2
1460-
* @deprecated since 4.1, use {@link MultiValuedMap} instead
1460+
* @deprecated Since 4.1, use {@link MultiValuedMap} instead
14611461
*/
14621462
@Deprecated
14631463
public static <K, V, C extends Collection<V>> MultiValueMap<K, V> multiValueMap(final Map<K, C> map,

src/main/java/org/apache/commons/collections4/MultiMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* @param <K> the type of the keys in this map
4747
* @param <V> the type of the values in this map
4848
* @since 2.0
49-
* @deprecated since 4.1, use {@link MultiValuedMap} instead
49+
* @deprecated Since 4.1, use {@link MultiValuedMap} instead
5050
*/
5151
@Deprecated
5252
public interface MultiMap<K, V> extends IterableMap<K, Object> {

src/main/java/org/apache/commons/collections4/map/MultiValueMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* @param <K> the type of the keys in this map
6767
* @param <V> the type of the values in this map
6868
* @since 3.2
69-
* @deprecated since 4.1, use {@link org.apache.commons.collections4.MultiValuedMap MultiValuedMap} instead
69+
* @deprecated Since 4.1, use {@link org.apache.commons.collections4.MultiValuedMap MultiValuedMap} instead
7070
*/
7171
@Deprecated
7272
public class MultiValueMap<K, V> extends AbstractMapDecorator<K, Object> implements MultiMap<K, V>, Serializable {

0 commit comments

Comments
 (0)