Home
last modified time | relevance | path

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

1234

/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()
277 public static String toString(Iterable<?> iterable) { in toString()
288 public static <T> T getOnlyElement(Iterable<T> iterable) { in getOnlyElement()
301 Iterable<? extends T> iterable, @Nullable T defaultValue) { in getOnlyElement()
314 public static <T> T[] toArray(Iterable<? extends T> iterable, Class<T> type) { in toArray()
[all …]
DFluentIterable.java76 private final Iterable<E> iterable; field in FluentIterable
83 FluentIterable(Iterable<E> iterable) { in FluentIterable()
91 public static <E> FluentIterable<E> from(final Iterable<E> iterable) { in from()
DAllEqualOrdering.java41 public <E> List<E> sortedCopy(Iterable<E> iterable) { in sortedCopy()
46 public <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) { in immutableSortedCopy()
DOrdering.java481 public <E extends T> E min(Iterable<E> iterable) { in min()
557 public <E extends T> E max(Iterable<E> iterable) { in max()
614 public <E extends T> List<E> leastOf(Iterable<E> iterable, int k) { in leastOf()
772 public <E extends T> List<E> greatestOf(Iterable<E> iterable, int k) { in greatestOf()
856 public boolean isOrdered(Iterable<? extends T> iterable) { in isOrdered()
877 public boolean isStrictlyOrdered(Iterable<? extends T> iterable) { in isStrictlyOrdered()
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()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DIterables.java63 final Iterable<T> iterable) { in unmodifiableIterable()
79 ImmutableCollection<E> iterable) { in unmodifiableIterable()
84 private final Iterable<T> iterable; field in Iterables.UnmodifiableIterable
86 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable()
105 public static int size(Iterable<?> iterable) { in size()
115 public static boolean contains(Iterable<?> iterable, @Nullable Object element) { in contains()
275 public static String toString(Iterable<?> iterable) { in toString()
286 public static <T> T getOnlyElement(Iterable<T> iterable) { in getOnlyElement()
299 Iterable<? extends T> iterable, @Nullable T defaultValue) { in getOnlyElement()
310 static Object[] toArray(Iterable<?> iterable) { in toArray()
[all …]
DFluentIterable.java75 private final Iterable<E> iterable; field in FluentIterable
82 FluentIterable(Iterable<E> iterable) { in FluentIterable()
90 public static <E> FluentIterable<E> from(final Iterable<E> iterable) { in from()
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DMinimalIterableTest.java36 Iterable<String> iterable = MinimalIterable.<String>of(); in testOf_empty() local
52 Iterable<String> iterable = MinimalIterable.of("a"); in testOf_one() local
70 Iterable<String> iterable in testFrom_empty() local
87 Iterable<String> iterable in testFrom_one() local
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DIterablesTest.java59 Iterable<String> iterable = Collections.emptySet(); in testSize0() local
64 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() local
69 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() local
89 private static Iterable<String> iterable(String... elements) { in iterable() method in IterablesTest
DTreeTraverserTest.java112 static String iterationOrder(Iterable<Tree> iterable) { in iterationOrder()
120 static String binaryIterationOrder(Iterable<BinaryTree> iterable) { in binaryIterationOrder()
/external/guava/guava-tests/test/com/google/common/collect/
DIterablesTest.java65 Iterable<String> iterable = Collections.emptySet(); in testSize0() local
70 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() local
75 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() local
95 private static Iterable<String> iterable(String... elements) { in iterable() method in IterablesTest
DFluentIterableTest.java68 FluentIterable<Integer> iterable = FluentIterable.from(asList(1)); in testFrom_alreadyFluentIterable() local
82 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() local
112 Iterable<String> iterable = iterable("a", null, "b"); in testContains_nullIterableYes() local
117 Iterable<String> iterable = iterable("a", "b"); in testContains_nullIterableNo() local
137 Iterable<String> iterable = iterable("a", "b"); in testContains_nonNullIterableNo() local
229 FluentIterable<String> iterable = FluentIterable.<String>from(list); in testAnyMatch() local
241 FluentIterable<String> iterable = FluentIterable.<String>from(list); in testAllMatch() local
252 FluentIterable<String> iterable = FluentIterable.from(Lists.newArrayList("cool", "pants")); in testFirstMatch() local
268 Iterable<Integer> iterable = in testTransformWith() local
278 Iterable<Integer> iterable = in testTransformWith_poorlyBehavedTransform() local
[all …]
DTreeTraverserTest.java114 static String iterationOrder(Iterable<Tree> iterable) { in iterationOrder()
122 static String binaryIterationOrder(Iterable<BinaryTree> iterable) { in binaryIterationOrder()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutIterableTester.java171 Iterable<V> iterable = new Iterable<V>() { in testPutAllEmptyIterableOnAbsentKey() local
178 assertFalse(multimap().putAll(sampleKeys().e3, iterable)); in testPutAllEmptyIterableOnAbsentKey() local
191 Iterable<V> iterable = new Iterable<V>() { in testPutAllOnlyCallsIteratorOnce() local
202 multimap().putAll(sampleKeys().e3, iterable); in testPutAllOnlyCallsIteratorOnce() local
/external/v8/src/js/
Dpromise.js28 function PromiseAll(iterable) { argument
92 function PromiseRace(iterable) { argument
Dweak-collection.js29 function WeakMapConstructor(iterable) { argument
118 function WeakSetConstructor(iterable) { argument
/external/python/cpython2/Lib/
Dheapq.py203 def nlargest(n, iterable): argument
221 def nsmallest(n, iterable): argument
399 def nsmallest(n, iterable, key=None): argument
436 def nlargest(n, iterable, key=None): argument
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsIterableContainingInRelativeOrder.java21 … protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) { in matchesSafely()
45 public void processItems(Iterable<? extends F> iterable) { in processItems()
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberMatcherTest.java754 Iterable<PhoneNumberMatch> iterable = in testMaxMatches() local
773 Iterable<PhoneNumberMatch> iterable = in testMaxMatchesInvalid() local
792 Iterable<PhoneNumberMatch> iterable = in testMaxMatchesMixed() local
803 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("1 456 764 156", RegionCode.ZZ); in testNonPlusPrefixedNumbersNotFoundForInvalidRegion() local
815 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("", RegionCode.ZZ); in testEmptyIteration() local
828 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("+14156667777", RegionCode.ZZ); in testSingleIteration() local
853 Iterable<PhoneNumberMatch> iterable = in testDoubleIteration() local
887 Iterable<PhoneNumberMatch> iterable = phoneUtil.findNumbers("+14156667777", RegionCode.ZZ); in testRemovalNotSupported() local
1058 private boolean hasNoMatches(Iterable<PhoneNumberMatch> iterable) { in hasNoMatches()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/util/
DCharSequenceConverter.java45 …ic ImmutableList<String> immutableStringList(@Nullable Iterable<? extends CharSequence> iterable) { in immutableStringList()
/external/smali/util/src/main/java/org/jf/util/
DCollectionUtils.java43 public static <T> int listHashCode(@Nonnull Iterable<T> iterable) { in listHashCode()
51 …tatic <T> int lastIndexOf(@Nonnull Iterable<T> iterable, @Nonnull Predicate<? super T> predicate) { in lastIndexOf()
DImmutableConverter.java49 public ImmutableList<ImmutableItem> toList(@Nullable final Iterable<? extends Item> iterable) { in toList()
/external/mockito/src/main/java/org/mockito/internal/util/
DChecks.java20 public static <T extends Iterable<?>> T checkItemsNotNull(T iterable, String checkedIterable) { in checkItemsNotNull()
/external/mockito/src/main/java/org/mockito/internal/util/collections/
DIterables.java35 public static <T> T firstOf(Iterable<T> iterable) { in firstOf()

1234