From 1f2a1396eed06581e856dcc222c98d74710c48c8 Mon Sep 17 00:00:00 2001 From: samskivert Date: Thu, 30 Sep 2010 21:39:31 +0000 Subject: [PATCH] Ray points out that addAll() and putAll() were already added to CollectionUtil. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2899 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/main/java/com/samskivert/util/Folds.java | 26 -------------------- 1 file changed, 26 deletions(-) diff --git a/src/main/java/com/samskivert/util/Folds.java b/src/main/java/com/samskivert/util/Folds.java index 2716304d..ff75a2cc 100644 --- a/src/main/java/com/samskivert/util/Folds.java +++ b/src/main/java/com/samskivert/util/Folds.java @@ -120,30 +120,4 @@ public class Folds } return zero; } - - /** - * Merges the supplied collections into zero using a left to right fold of - * {@link Collection#addAll}. - */ - public static > C addAll ( - C zero, Iterable> values) - { - for (Collection value : values) { - zero.addAll(value); - } - return zero; - } - - /** - * Merges the supplied maps into zero using a left to right fold of - * {@link Map#putAll}. - */ - public static > M putAll ( - M zero, Iterable> values) - { - for (Map value : values) { - zero.putAll(value); - } - return zero; - } }