Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 151 for iterables (0.62 seconds)

  1. guava/src/com/google/common/collect/Iterables.java

       * this method returns {@code true} if {@code iterable1} and {@code iterable2} contain the same
       * number of elements and every element of {@code iterable1} is equal to the corresponding element
       * of {@code iterable2}.
       */
      public static boolean elementsEqual(Iterable<?> iterable1, Iterable<?> iterable2) {
        if (iterable1 instanceof Collection && iterable2 instanceof Collection) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 43.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      private void testGetOnAbc(Iterable<String> iterable) {
        try {
          Iterables.get(iterable, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        assertThat(Iterables.get(iterable, 0)).isEqualTo("a");
        assertThat(Iterables.get(iterable, 1)).isEqualTo("b");
        assertThat(Iterables.get(iterable, 2)).isEqualTo("c");
        try {
          Iterables.get(iterable, 3);
          fail();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/FluentIterable.java

          Iterable<? extends T> a,
          Iterable<? extends T> b,
          Iterable<? extends T> c,
          Iterable<? extends T> d) {
        return concatNoDefensiveCopy(a, b, c, d);
      }
    
      /**
       * Returns a fluent iterable that combines several iterables. The returned iterable has an
       * iterator that traverses the elements of each iterable in {@code inputs}. The input iterators
       * are not polled until necessary.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/FluentIterable.java

          Iterable<? extends T> a,
          Iterable<? extends T> b,
          Iterable<? extends T> c,
          Iterable<? extends T> d) {
        return concatNoDefensiveCopy(a, b, c, d);
      }
    
      /**
       * Returns a fluent iterable that combines several iterables. The returned iterable has an
       * iterator that traverses the elements of each iterable in {@code inputs}. The input iterators
       * are not polled until necessary.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Collections2.java

       * swapping them.
       *
       * <p>An empty iterable has only one permutation, which is an empty list.
       *
       * @param elements the original iterable whose elements have to be permuted.
       * @param comparator a comparator for the iterable's elements.
       * @return an immutable {@link Collection} containing all the different permutations of the
       *     original iterable.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 23K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ArrayTable.java

       */
      public static <R, C, V> ArrayTable<R, C, V> create(
          Iterable<? extends R> rowKeys, Iterable<? extends C> columnKeys) {
        return new ArrayTable<>(rowKeys, columnKeys);
      }
    
      /*
       * TODO(jlevy): Add factory methods taking an Enum class, instead of an
       * iterable, to specify the allowed row keys and/or column keys. Note that
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/math/MathTesting.java

      static final Iterable<Double> INFINITIES =
          Doubles.asList(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY);
      static final Iterable<Double> FINITE_DOUBLE_CANDIDATES;
      static final Iterable<Double> POSITIVE_FINITE_DOUBLE_CANDIDATES;
      static final Iterable<Double> ALL_DOUBLE_CANDIDATES;
      static final Iterable<Double> DOUBLE_CANDIDATES_EXCEPT_NAN;
    
      static {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

       */
      private Iterable<List<Object>> buildCartesianProduct(Set<?>... sets) {
        List<Set<Optional<?>>> optionalSets = Lists.newArrayListWithExpectedSize(sets.length);
        for (Set<?> set : sets) {
          Set<Optional<?>> optionalSet =
              Sets.newLinkedHashSet(Iterables.transform(set, Optional::fromNullable));
          optionalSets.add(optionalSet);
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Predicate;
    import com.google.common.base.Predicates;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Iterables;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

            .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
      }
    
      private Iterable<LoadingCache<Key, String>> caches() {
        CacheBuilderFactory factory = factoryWithAllKeyStrengths();
        return Iterables.transform(
            factory.buildAllPermutations(), builder -> builder.build(KEY_TO_STRING_LOADER));
      }
    
      public void testContainsKeyAndValue() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 5.1K bytes
    - Click Count (0)
Back to Top