Add missing since tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479401 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b9b45674bd
commit
6a957e410a
|
@ -57,6 +57,7 @@ public class PredicatedCollection<E> extends AbstractCollectionDecorator<E> {
|
|||
* @return a new predicated collection
|
||||
* @throws IllegalArgumentException if collection or predicate is null
|
||||
* @throws IllegalArgumentException if the collection contains invalid elements
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <T> PredicatedCollection<T> predicatedCollection(final Collection<T> coll,
|
||||
final Predicate<? super T> predicate) {
|
||||
|
|
|
@ -55,6 +55,7 @@ public class SynchronizedCollection<E> implements Collection<E>, Serializable {
|
|||
* @param coll the collection to decorate, must not be null
|
||||
* @return a new synchronized collection
|
||||
* @throws IllegalArgumentException if collection is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <T> SynchronizedCollection<T> synchronizedCollection(final Collection<T> coll) {
|
||||
return new SynchronizedCollection<T>(coll);
|
||||
|
|
|
@ -56,6 +56,7 @@ public class TransformedCollection<E> extends AbstractCollectionDecorator<E> {
|
|||
* @param transformer the transformer to use for conversion, must not be null
|
||||
* @return a new transformed collection
|
||||
* @throws IllegalArgumentException if collection or transformer is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> TransformedCollection<E> transformingCollection(final Collection<E> coll,
|
||||
final Transformer<? super E, ? extends E> transformer) {
|
||||
|
|
|
@ -52,6 +52,7 @@ public final class UnmodifiableBoundedCollection<E> extends AbstractCollectionDe
|
|||
* @param coll the <code>BoundedCollection</code> to decorate, must not be null
|
||||
* @return a new unmodifiable bounded collection
|
||||
* @throws IllegalArgumentException if {@code coll} is {@code null}
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> BoundedCollection<E> unmodifiableBoundedCollection(final BoundedCollection<E> coll) {
|
||||
return new UnmodifiableBoundedCollection<E>(coll);
|
||||
|
@ -67,6 +68,7 @@ public final class UnmodifiableBoundedCollection<E> extends AbstractCollectionDe
|
|||
* @param coll the <code>BoundedCollection</code> to decorate, must not be null
|
||||
* @return a new unmodifiable bounded collection
|
||||
* @throws IllegalArgumentException if {@code coll} is {@code null}
|
||||
* @since 4.0
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <E> BoundedCollection<E> unmodifiableBoundedCollection(Collection<? extends E> coll) {
|
||||
|
|
|
@ -49,6 +49,7 @@ public final class UnmodifiableCollection<E>
|
|||
* @param coll the collection to decorate, must not be null
|
||||
* @return an unmodifiable collection
|
||||
* @throws IllegalArgumentException if collection is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <T> Collection<T> unmodifiableCollection(final Collection<T> coll) {
|
||||
if (coll instanceof Unmodifiable) {
|
||||
|
|
Loading…
Reference in New Issue