Package randoop.util

Class CollectionsExt


  • public final class CollectionsExt
    extends Object
    • Constructor Detail

      • CollectionsExt

        private CollectionsExt()
    • 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