| java.lang.Object net.sf.jga.util.CollectionUtils
CollectionUtils | public class CollectionUtils (Code) | | General utilites for working with collections. These are generally extensions
to what's already defined in the standard java.util.Collection class
Copyright © 2006 David A. Hall
author: David A. Hall |
Method Summary | |
public static boolean | addAll(Collection<? super T> cout, Iterator<T> iter) Adds all of the elements of the iterator to the collection. | public static boolean | addAll(Collection<? super T> cout, T... values) Adds all of the arguments to the collection. | public static TCollection | append(TCollection cout, Iterable<T> iterable) Adds all of the elements of the iterator to the collection and returns the collection. | public static TCollection | append(TCollection cout, Iterator<T> iter) Adds all of the elements of the iterator to the collection and returns the collection. | public static TCollection | append(TCollection cout, T... values) Adds all of the arguments to the collection and returns the collection. |
addAll | public static boolean addAll(Collection<? super T> cout, Iterator<T> iter)(Code) | | Adds all of the elements of the iterator to the collection. If necessary and possible,
the collection will be enlarged: if enlarging the collection is not possible, then a
runtime exception will be thrown. This is an augmentation of the
Collection.addAll(Collection) API method.
|
addAll | public static boolean addAll(Collection<? super T> cout, T... values)(Code) | | Adds all of the arguments to the collection. If necessary and possible, the collection
will be enlarged: if enlarging the collection is not possible, then a runtime exception
will be thrown.
Augmentation of the Collection.addAll(Collection) API method.
|
append | public static TCollection append(TCollection cout, Iterable<T> iterable)(Code) | | Adds all of the elements of the iterator to the collection and returns the collection.
If necessary and possible, the collection will be enlarged: if enlarging the collection
is not possible, then a runtime exception is thrown.
|
append | public static TCollection append(TCollection cout, Iterator<T> iter)(Code) | | Adds all of the elements of the iterator to the collection and returns the collection.
If necessary and possible, the collection will be enlarged: if enlarging the collection
is not possible, then a runtime exception is thrown.
|
append | public static TCollection append(TCollection cout, T... values)(Code) | | Adds all of the arguments to the collection and returns the collection. If necessary
and possible, the collection will be enlarged: if enlarging the collection is not
possible, then the runtime exception thrown. A similar method exists in Java 1.5,
although it returns boolean rather than the collection.
|
|
|