diff options
author | Ryan D. Brooks | 2014-01-29 02:19:38 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2014-01-29 02:19:38 +0000 |
commit | 996dc6659e3bc29434887df575ac0ca9488df198 (patch) | |
tree | 35bc72c105d4a775e6d6bca37f8e5e4e592bb9be /plugins/org.eclipse.osee.framework.jdk.core | |
parent | 766a016fc8f6a8f7c772d603dd86d469da9b64d9 (diff) | |
download | org.eclipse.osee-996dc6659e3bc29434887df575ac0ca9488df198.tar.gz org.eclipse.osee-996dc6659e3bc29434887df575ac0ca9488df198.tar.xz org.eclipse.osee-996dc6659e3bc29434887df575ac0ca9488df198.zip |
refactor: Allow Collections.toString to accept Iterable
Change-Id: I90f50e9392b81818ceaafd2725f45d8883d38973
Diffstat (limited to 'plugins/org.eclipse.osee.framework.jdk.core')
-rw-r--r-- | plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java index b86d3820a20..44b1967dcb8 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java @@ -39,7 +39,7 @@ public class Collections { * @return A String which starts with 'start', followed by the elements in the Collection c separated by 'separator', * ending with 'end'. */ - public static String toString(Collection<?> items, String prefix, String separator, String suffix) { + public static String toString(Iterable<?> items, String prefix, String separator, String suffix) { StringBuilder strB = new StringBuilder(); if (prefix != null) { @@ -67,7 +67,7 @@ public class Collections { return toString(separator, Arrays.asList(items)); } - public static String toString(String separator, Collection<?> c) { + public static String toString(String separator, Iterable<?> c) { return toString(c, null, separator, null); } |