Package randoop.util
Class CollectionsExt
- java.lang.Object
-
- randoop.util.CollectionsExt
-
public final class CollectionsExt extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CollectionsExt()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static <T> T
getNthIteratedElement(Collection<? extends T> s, int index)
private static <T> T
getNthIteratedElement(Iterator<? extends T> iter, int index)
(package private) static String
toStringInLines(Collection<? extends @Signed Object> c)
Returns the String.valueOf() of all elements of the collection, one on each line.private static List<String>
toStringLines(Collection<? extends @Signed Object> c)
List of String.valueOf() of all elements of the collection.
-
-
-
Method Detail
-
getNthIteratedElement
static <T> T getNthIteratedElement(Collection<? extends T> s, int index)
-
getNthIteratedElement
private static <T> T getNthIteratedElement(Iterator<? extends T> iter, int index)
-
toStringInLines
static String toStringInLines(Collection<? extends @Signed Object> c)
Returns the String.valueOf() of all elements of the collection, one on each line.- Parameters:
c
- the collection of objects to include in string- Returns:
- the concatenated string of object strings as lines
-
toStringLines
private static List<String> toStringLines(Collection<? extends @Signed Object> c)
List of String.valueOf() of all elements of the collection.- Parameters:
c
- the collection of objects to include in string- Returns:
- the concatenated string of object strings
-
-