Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 303 for iterable (0.24 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

    public final class MinimalIterable<E extends @Nullable Object> implements Iterable<E> {
      /** Returns an iterable whose iterator returns the given elements in order. */
      public static <E extends @Nullable Object> MinimalIterable<E> of(E... elements) {
        // Make sure to get an unmodifiable iterator
        return new MinimalIterable<>(asList(elements).iterator());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java

        private final boolean errors;
    
        private final T value;
    
        private final Iterable<? extends ModelProblem> problems;
    
        private Result(boolean errors, T model, Iterable<? extends ModelProblem> problems) {
            this.errors = errors;
            this.value = model;
            this.problems = problems;
        }
    
        public Iterable<? extends ModelProblem> getProblems() {
            return problems;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllEmptyIterableOnAbsentKey() {
        Iterable<V> iterable =
            new Iterable<V>() {
              @Override
              public Iterator<V> iterator() {
                return ImmutableSet.<V>of().iterator();
              }
            };
    
        assertFalse(multimap().putAll(k3(), iterable));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      private void testGetOnAbc(Iterable<String> iterable) {
        try {
          Iterables.get(iterable, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        assertEquals("a", Iterables.get(iterable, 0));
        assertEquals("b", Iterables.get(iterable, 1));
        assertEquals("c", Iterables.get(iterable, 2));
        try {
          Iterables.get(iterable, 3);
          fail();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        Iterable<String> set = newHashSet("a", "b");
        assertFalse(FluentIterable.from(set).contains("c"));
      }
    
      public void testContains_nonNullIterableYes() {
        Iterable<String> set = iterable("a", null, "b");
        assertTrue(FluentIterable.from(set).contains("b"));
      }
    
      public void testContains_nonNullIterableNo() {
        Iterable<String> iterable = iterable("a", "b");
        assertFalse(FluentIterable.from(iterable).contains("c"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

      public void testOf_empty() {
        Iterable<String> iterable = MinimalIterable.<String>of();
        Iterator<String> iterator = iterable.iterator();
        assertFalse(iterator.hasNext());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Collections2.java

       *     original iterable.
       * @throws NullPointerException if the specified iterable is null or has any null elements.
       * @since 12.0
       */
      public static <E extends Comparable<? super E>> Collection<List<E>> orderedPermutations(
          Iterable<E> elements) {
        return orderedPermutations(elements, Ordering.natural());
      }
    
      /**
       * Returns a {@link Collection} of all the permutations of the specified {@link Iterable} using
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. 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.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Ordering.java

      // Ordering<Iterable<String>> o =
      //     Ordering.<String>natural().lexicographical();
      public <S extends T> Ordering<Iterable<S>> lexicographical() {
        /*
         * Note that technically the returned ordering should be capable of
         * handling not just {@code Iterable<S>} instances, but also any {@code
         * Iterable<? extends S>}. However, the need for this comes up so rarely
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        @SuppressWarnings("rawtypes") // Iterable.class
        TypeToken<? extends Iterable> genericType = TypeToken.toGenericType(Iterable.class);
        assertEquals(Iterable.class, genericType.getRawType());
        assertEquals(
            Types.newParameterizedType(Iterable.class, Iterable.class.getTypeParameters()[0]),
            genericType.getType());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
Back to top