Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 164 for Iterable (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  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/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)
  7. 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)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

          return generator.create(elements);
        }
    
        @Override
        public Entry<K, V>[] createArray(int length) {
          return generator.createArray(length);
        }
    
        @Override
        public Iterable<Entry<K, V>> order(List<Entry<K, V>> insertionOrder) {
          return generator.order(insertionOrder);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public K[] createKeyArray(int length) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        Iterable<Double> iterable = iterable(Collections.<Double>emptySet());
        assertThat(ImmutableDoubleArray.copyOf(iterable)).isSameInstanceAs(ImmutableDoubleArray.of());
      }
    
      public void testCopyOf_iterable_notCollection_nonempty() {
        List<Double> list = Arrays.asList(0.0, 1.0, 3.0);
        ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf(iterable(list));
        list.set(2, 2.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. android/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