Add missing since tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
077913c7e9
commit
583ee805bd
|
@ -55,6 +55,7 @@ public class PredicatedBag<E> extends PredicatedCollection<E> implements Bag<E>
|
|||
* @return a new predicated Bag
|
||||
* @throws IllegalArgumentException if bag or predicate is null
|
||||
* @throws IllegalArgumentException if the bag contains invalid elements
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> PredicatedBag<E> predicatedBag(final Bag<E> bag, final Predicate<? super E> predicate) {
|
||||
return new PredicatedBag<E>(bag, predicate);
|
||||
|
|
|
@ -54,6 +54,7 @@ public class PredicatedSortedBag<E> extends PredicatedBag<E> implements SortedBa
|
|||
* @return a new predicated SortedBag
|
||||
* @throws IllegalArgumentException if bag or predicate is null
|
||||
* @throws IllegalArgumentException if the bag contains invalid elements
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> PredicatedSortedBag<E> predicatedSortedBag(final SortedBag<E> bag,
|
||||
final Predicate<? super E> predicate) {
|
||||
|
|
|
@ -45,6 +45,7 @@ public class SynchronizedBag<E> extends SynchronizedCollection<E> implements Bag
|
|||
* @param bag the bag to decorate, must not be null
|
||||
* @return a new synchronized Bag
|
||||
* @throws IllegalArgumentException if bag is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> SynchronizedBag<E> synchronizedBag(final Bag<E> bag) {
|
||||
return new SynchronizedBag<E>(bag);
|
||||
|
|
|
@ -45,6 +45,7 @@ public class SynchronizedSortedBag<E> extends SynchronizedBag<E> implements Sort
|
|||
* @param bag the bag to decorate, must not be null
|
||||
* @return a new synchronized SortedBag
|
||||
* @throws IllegalArgumentException if bag is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> SynchronizedSortedBag<E> synchronizedSortedBag(final SortedBag<E> bag) {
|
||||
return new SynchronizedSortedBag<E>(bag);
|
||||
|
|
|
@ -52,6 +52,7 @@ public class TransformedBag<E> extends TransformedCollection<E> implements Bag<E
|
|||
* @param transformer the transformer to use for conversion, must not be null
|
||||
* @return a new transformed Bag
|
||||
* @throws IllegalArgumentException if bag or transformer is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> Bag<E> transformingBag(final Bag<E> bag, final Transformer<? super E, ? extends E> transformer) {
|
||||
return new TransformedBag<E>(bag, transformer);
|
||||
|
|
|
@ -50,6 +50,7 @@ public class TransformedSortedBag<E> extends TransformedBag<E> implements Sorted
|
|||
* @param transformer the transformer to use for conversion, must not be null
|
||||
* @return a new transformed SortedBag
|
||||
* @throws IllegalArgumentException if bag or transformer is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> TransformedSortedBag<E> transformingSortedBag(final SortedBag<E> bag,
|
||||
final Transformer<? super E, ? extends E> transformer) {
|
||||
|
|
|
@ -54,6 +54,7 @@ public final class UnmodifiableBag<E>
|
|||
* @param bag the bag to decorate, must not be null
|
||||
* @return an unmodifiable Bag
|
||||
* @throws IllegalArgumentException if bag is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> Bag<E> unmodifiableBag(final Bag<E> bag) {
|
||||
if (bag instanceof Unmodifiable) {
|
||||
|
|
|
@ -54,6 +54,7 @@ public final class UnmodifiableSortedBag<E>
|
|||
* @param bag the bag to decorate, must not be null
|
||||
* @return an unmodifiable SortedBag
|
||||
* @throws IllegalArgumentException if bag is null
|
||||
* @since 4.0
|
||||
*/
|
||||
public static <E> SortedBag<E> unmodifiableSortedBag(final SortedBag<E> bag) {
|
||||
if (bag instanceof Unmodifiable) {
|
||||
|
|
Loading…
Reference in New Issue