Home
last modified time | relevance | path

Searched defs:iterable (Results 1 – 25 of 51) sorted by relevance

123

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DIterables.java62 final Iterable<T> iterable) { in unmodifiableIterable()
78 ImmutableCollection<E> iterable) { in unmodifiableIterable()
83 private final Iterable<T> iterable; field in Iterables.UnmodifiableIterable
85 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable()
104 public static int size(Iterable<?> iterable) { in size()
114 public static boolean contains(Iterable<?> iterable, @Nullable Object element) in contains()
253 public static String toString(Iterable<?> iterable) { in toString()
264 public static <T> T getOnlyElement(Iterable<T> iterable) { in getOnlyElement()
276 Iterable<T> iterable, @Nullable T defaultValue) { in getOnlyElement()
287 static Object[] toArray(Iterable<?> iterable) { in toArray()
[all …]
DImmutableSet.java109 Iterable<? extends E> iterable = elements; in copyOf() local
/external/guava/guava/src/com/google/common/collect/
DIterables.java65 final Iterable<T> iterable) { in unmodifiableIterable()
81 ImmutableCollection<E> iterable) { in unmodifiableIterable()
86 private final Iterable<T> iterable; field in Iterables.UnmodifiableIterable
88 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable()
107 public static int size(Iterable<?> iterable) { in size()
117 public static boolean contains(Iterable<?> iterable, @Nullable Object element) in contains()
256 public static String toString(Iterable<?> iterable) { in toString()
267 public static <T> T getOnlyElement(Iterable<T> iterable) { in getOnlyElement()
279 Iterable<T> iterable, @Nullable T defaultValue) { in getOnlyElement()
292 public static <T> T[] toArray(Iterable<? extends T> iterable, Class<T> type) { in toArray()
[all …]
DOrdering.java409 public <E extends T> List<E> leastOf(Iterable<E> iterable, int k) { in leastOf()
450 public <E extends T> List<E> greatestOf(Iterable<E> iterable, int k) { in greatestOf()
511 public <E extends T> List<E> sortedCopy(Iterable<E> iterable) { in sortedCopy()
533 Iterable<E> iterable) { in immutableSortedCopy()
543 public boolean isOrdered(Iterable<? extends T> iterable) { in isOrdered()
564 public boolean isStrictlyOrdered(Iterable<? extends T> iterable) { in isStrictlyOrdered()
613 public <E extends T> E max(Iterable<E> iterable) { in max()
690 public <E extends T> E min(Iterable<E> iterable) { in min()
DReverseNaturalOrdering.java60 @Override public <E extends Comparable> E min(Iterable<E> iterable) { in min()
76 @Override public <E extends Comparable> E max(Iterable<E> iterable) { in max()
DReverseOrdering.java60 @Override public <E extends T> E min(Iterable<E> iterable) { in min()
76 @Override public <E extends T> E max(Iterable<E> iterable) { in max()
DNaturalOrdering.java56 Iterable<E> iterable) { in sortedCopy()
DComparatorOrdering.java49 @Override public <E extends T> List<E> sortedCopy(Iterable<E> iterable) { in sortedCopy()
DRange.java499 private static <T> SortedSet<T> cast(Iterable<T> iterable) { in cast()
DCollections2.java340 static <T> Collection<T> cast(Iterable<T> iterable) { in cast()
/external/guava/guava-tests/test/com/google/common/collect/
DIterablesTest.java63 Iterable<String> iterable = Collections.emptySet(); in testSize0() local
68 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() local
73 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() local
94 private static Iterable<String> iterable(String... elements) { in iterable() method in IterablesTest
DIteratorsTest.java499 Iterable<String> iterable = Lists.newArrayList("a"); in testCycleOfOneWithRemove() local
504 assertEquals(Collections.emptyList(), iterable); in testCycleOfOneWithRemove() local
519 Iterable<String> iterable = Lists.newArrayList("a", "b"); in testCycleOfTwoWithRemove() local
534 assertEquals(Collections.emptyList(), iterable); in testCycleOfTwoWithRemove() local
560 Iterable<String> iterable = asList("a", "b"); in testCycleWhenRemoveIsNotSupported() local
571 Iterable<String> iterable = Lists.newArrayList("a"); in testCycleRemoveAfterHasNext() local
577 assertEquals(Collections.emptyList(), iterable); in testCycleRemoveAfterHasNext() local
582 Iterable<String> iterable = Lists.newArrayList("a"); in testCycleNoSuchElementException() local
DPeekingIteratorTest.java194 public ThrowsAtEndIterator(Iterable<E> iterable) { in ThrowsAtEndIterator()
DImmutableListTest.java373 CountingIterable iterable = new CountingIterable(); in testCopyOf_plainIterable() local
379 CountingIterable iterable = new CountingIterable(); in testCopyOf_plainIterable_iteratesOnce() local
DAbstractImmutableSetTest.java220 CountingIterable iterable = new CountingIterable(); in testCopyOf_plainIterable() local
228 CountingIterable iterable = new CountingIterable(); in testCopyOf_plainIterable_iteratesOnce() local
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DPhoneNumberMatcherTest.java674 Iterable<PhoneNumberMatch> iterable = in testMaxMatches() local
693 Iterable<PhoneNumberMatch> iterable = in testMaxMatchesInvalid() local
712 Iterable<PhoneNumberMatch> iterable = in testMaxMatchesMixed() local
723 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("1 456 764 156", RegionCode.ZZ); in testNonPlusPrefixedNumbersNotFoundForInvalidRegion() local
735 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("", RegionCode.ZZ); in testEmptyIteration() local
748 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("+14156667777", RegionCode.ZZ); in testSingleIteration() local
773 Iterable<PhoneNumberMatch> iterable = in testDoubleIteration() local
807 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("+14156667777", RegionCode.ZZ); in testRemovalNotSupported() local
963 private boolean hasNoMatches(Iterable<PhoneNumberMatch> iterable) { in hasNoMatches()
/external/mockito/src/org/mockito/internal/util/
DChecks.java20 public static <T extends Iterable> T checkItemsNotNull(T iterable, String checkedIterable) { in checkItemsNotNull()
/external/chromium_org/base/android/java/src/org/chromium/base/
DCollectionUtil.java32 public static <E> ArrayList<E> newArrayList(Iterable<E> iterable) { in newArrayList()
/external/guava/guava/src/com/google/common/base/
DPairwiseEquivalence.java51 protected int doHash(Iterable<T> iterable) { in doHash()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/
Dtest_configuration.py201 def combinations(iterable, r): argument
226 def symmetric_difference(cls, iterable): argument
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/
Dordered_dict.py85 def fromkeys(cls, iterable, value=None): argument
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/
Dbackward.py21 def sorted(iterable): argument
/external/chromium_org/third_party/simplejson/
Dordered_dict.py106 def fromkeys(cls, iterable, value=None): argument
/external/chromium_org/base/android/javatests/src/org/chromium/base/
DObserverListTest.java73 private static <T> int getSizeOfIterable(Iterable<T> iterable) { in getSizeOfIterable()
/external/chromium_org/tools/gyp/pylib/gyp/
Dordered_dict.py231 def fromkeys(cls, iterable, value=None): argument

123