Change since tags from 3.3 to 4.0.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1451177 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-02-28 11:42:31 +00:00
parent 74a09f9cae
commit 090f04d180
9 changed files with 10 additions and 10 deletions

View File

@ -1382,7 +1382,7 @@ public class CollectionUtils {
* @return a <code>Collection</code> containing all the elements of <code>collection</code> except * @return a <code>Collection</code> containing all the elements of <code>collection</code> except
* any elements that also occur in <code>remove</code>. * any elements that also occur in <code>remove</code>.
* @throws NullPointerException if either parameter is null * @throws NullPointerException if either parameter is null
* @since 3.3 (method existed in 3.2 but was completely broken) * @since 4.0 (method existed in 3.2 but was completely broken)
*/ */
public static <E> Collection<E> removeAll(final Collection<E> collection, final Collection<?> remove) { public static <E> Collection<E> removeAll(final Collection<E> collection, final Collection<?> remove) {
return ListUtils.removeAll(collection, remove); return ListUtils.removeAll(collection, remove);

View File

@ -70,7 +70,7 @@ public class TransformedBag<E> extends TransformedCollection<E> implements Bag<E
* @param transformer the transformer to use for conversion, must not be null * @param transformer the transformer to use for conversion, must not be null
* @return a new transformed Bag * @return a new transformed Bag
* @throws IllegalArgumentException if bag or transformer is null * @throws IllegalArgumentException if bag or transformer is null
* @since 3.3 * @since 4.0
*/ */
public static <E> Bag<E> transformedBag(final Bag<E> bag, final Transformer<? super E, ? extends E> transformer) { public static <E> Bag<E> transformedBag(final Bag<E> bag, final Transformer<? super E, ? extends E> transformer) {
final TransformedBag<E> decorated = new TransformedBag<E>(bag, transformer); final TransformedBag<E> decorated = new TransformedBag<E>(bag, transformer);

View File

@ -69,7 +69,7 @@ public class TransformedSortedBag<E> extends TransformedBag<E> implements Sorted
* @param transformer the transformer to use for conversion, must not be null * @param transformer the transformer to use for conversion, must not be null
* @return a new transformed SortedBag * @return a new transformed SortedBag
* @throws IllegalArgumentException if bag or transformer is null * @throws IllegalArgumentException if bag or transformer is null
* @since 3.3 * @since 4.0
*/ */
public static <E> TransformedSortedBag<E> transformedSortedBag(final SortedBag<E> bag, public static <E> TransformedSortedBag<E> transformedSortedBag(final SortedBag<E> bag,
final Transformer<? super E, ? extends E> transformer) { final Transformer<? super E, ? extends E> transformer) {

View File

@ -69,7 +69,7 @@ public class TransformedBuffer<E> extends TransformedCollection<E> implements Bu
* @param transformer the transformer to use for conversion, must not be null * @param transformer the transformer to use for conversion, must not be null
* @return a new transformed Buffer * @return a new transformed Buffer
* @throws IllegalArgumentException if buffer or transformer is null * @throws IllegalArgumentException if buffer or transformer is null
* @since 3.3 * @since 4.0
*/ */
public static <E> TransformedBuffer<E> transformedBuffer(final Buffer<E> buffer, public static <E> TransformedBuffer<E> transformedBuffer(final Buffer<E> buffer,
final Transformer<? super E, ? extends E> transformer) { final Transformer<? super E, ? extends E> transformer) {

View File

@ -75,7 +75,7 @@ public class TransformedCollection<E> extends AbstractCollectionDecorator<E> {
* @param transformer the transformer to use for conversion, must not be null * @param transformer the transformer to use for conversion, must not be null
* @return a new transformed Collection * @return a new transformed Collection
* @throws IllegalArgumentException if collection or transformer is null * @throws IllegalArgumentException if collection or transformer is null
* @since 3.3 * @since 4.0
*/ */
public static <E> TransformedCollection<E> transformedCollection(final Collection<E> collection, public static <E> TransformedCollection<E> transformedCollection(final Collection<E> collection,
final Transformer<? super E, ? extends E> transformer) { final Transformer<? super E, ? extends E> transformer) {

View File

@ -73,7 +73,7 @@ public class TransformedList<E> extends TransformedCollection<E> implements List
* @param transformer the transformer to use for conversion, must not be null * @param transformer the transformer to use for conversion, must not be null
* @return a new transformed List * @return a new transformed List
* @throws IllegalArgumentException if list or transformer is null * @throws IllegalArgumentException if list or transformer is null
* @since 3.3 * @since 4.0
*/ */
public static <E> TransformedList<E> transformedList(final List<E> list, public static <E> TransformedList<E> transformedList(final List<E> list,
final Transformer<? super E, ? extends E> transformer) { final Transformer<? super E, ? extends E> transformer) {

View File

@ -150,7 +150,7 @@ public class MultiValueMap<K, V> extends AbstractMapDecorator<K, Object> impleme
* *
* @param out the output stream * @param out the output stream
* @throws IOException * @throws IOException
* @since 3.3 * @since 4.0
*/ */
private void writeObject(final ObjectOutputStream out) throws IOException { private void writeObject(final ObjectOutputStream out) throws IOException {
out.defaultWriteObject(); out.defaultWriteObject();
@ -163,7 +163,7 @@ public class MultiValueMap<K, V> extends AbstractMapDecorator<K, Object> impleme
* @param in the input stream * @param in the input stream
* @throws IOException * @throws IOException
* @throws ClassNotFoundException * @throws ClassNotFoundException
* @since 3.3 * @since 4.0
*/ */
@SuppressWarnings("unchecked") // (1) should only fail if input stream is incorrect @SuppressWarnings("unchecked") // (1) should only fail if input stream is incorrect
private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {

View File

@ -70,7 +70,7 @@ public class TransformedSet<E> extends TransformedCollection<E> implements Set<E
* @param transformer the transformer to use for conversion, must not be null * @param transformer the transformer to use for conversion, must not be null
* @return a new transformed set * @return a new transformed set
* @throws IllegalArgumentException if set or transformer is null * @throws IllegalArgumentException if set or transformer is null
* @since 3.3 * @since 4.0
*/ */
public static <E> Set<E> transformedSet(final Set<E> set, final Transformer<? super E, ? extends E> transformer) { public static <E> Set<E> transformedSet(final Set<E> set, final Transformer<? super E, ? extends E> transformer) {
final TransformedSet<E> decorated = new TransformedSet<E>(set, transformer); final TransformedSet<E> decorated = new TransformedSet<E>(set, transformer);

View File

@ -70,7 +70,7 @@ public class TransformedSortedSet<E> extends TransformedSet<E> implements Sorted
* @param transformer the transformer to use for conversion, must not be null * @param transformer the transformer to use for conversion, must not be null
* @return a new transformed {@link SortedSet} * @return a new transformed {@link SortedSet}
* @throws IllegalArgumentException if set or transformer is null * @throws IllegalArgumentException if set or transformer is null
* @since 3.3 * @since 4.0
*/ */
public static <E> TransformedSortedSet<E> transformedSortedSet(final SortedSet<E> set, public static <E> TransformedSortedSet<E> transformedSortedSet(final SortedSet<E> set,
final Transformer<? super E, ? extends E> transformer) { final Transformer<? super E, ? extends E> transformer) {