Home
last modified time | relevance | path

Searched refs:iterable (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/main/java/libcore/util/
DCollectionUtils.java37 final Iterable<? extends Reference<T>> iterable, final boolean trim) { in dereferenceIterable() argument
41 private final Iterator<? extends Reference<T>> delegate = iterable.iterator(); in dereferenceIterable()
/libcore/luni/src/test/java/libcore/java/lang/
DStringTest.java758 ArrayList<String> iterable = new ArrayList<>(); in testJoin_Iterable() local
759 assertEquals("", String.join("-", iterable)); in testJoin_Iterable()
761 iterable.add("foo"); in testJoin_Iterable()
762 assertEquals("foo", String.join("-", iterable)); in testJoin_Iterable()
764 iterable.add("bar"); in testJoin_Iterable()
765 assertEquals("foo...bar", String.join("...", iterable)); in testJoin_Iterable()
767 iterable.add("foo"); in testJoin_Iterable()
768 assertEquals("foo-bar-foo", String.join("-", iterable)); in testJoin_Iterable()
769 assertEquals("foobarfoo", String.join("", iterable)); in testJoin_Iterable()
/libcore/luni/src/test/java/libcore/libcore/util/
DCollectionUtilsTest.java69 private <T> List<T> toList(Iterable<T> iterable) { in toList() argument
71 for (T t : iterable) { in toList()
/libcore/luni/src/test/java/libcore/java/util/
DLinkedHashMapTest.java327 private static<E> int iterableSize(Iterable<E> iterable) { in iterableSize() argument
329 for (E element : iterable) { in iterableSize()