Added missing since tags

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1476507 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-04-27 07:16:48 +00:00
parent 8641a2e3d5
commit 50bd9f108b
1 changed files with 2 additions and 0 deletions

View File

@ -704,6 +704,7 @@ public class CollectionUtils {
* @param collection the collection to get the input from, may be null
* @param closure the closure to perform, may be null
* @return the last element in the collection, or null if either collection or closure is null
* @since 4.0
*/
public static <T, C extends Closure<? super T>> T forAllButLastDo(final Collection<T> collection,
final C closure) {
@ -720,6 +721,7 @@ public class CollectionUtils {
* @param iterator the iterator to get the input from, may be null
* @param closure the closure to perform, may be null
* @return the last element in the collection, or null if either iterator or closure is null
* @since 4.0
*/
public static <T, C extends Closure<? super T>> T forAllButLastDo(final Iterator<T> iterator, final C closure) {
if (iterator != null && closure != null) {