Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 651 for iterators (0.11 sec)

  1. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

                              public long skip(long n) {
                                return 0;
                              }
                            };
                          }
                        })
                    .iterator());
        assertEquals(0, multi.skip(-1));
        assertEquals(0, multi.skip(-1));
        assertEquals(0, multi.skip(0));
        ByteStreams.skipFully(multi, 20);
        assertEquals(20, multi.read());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/HashMultisetTest.java

        Multiset<Multiset<?>> multiset = HashMultiset.create();
        multiset.add(multiset, 2);
        Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Only used by @GwtIncompatible code
      private static class MultisetHolder implements Serializable {
        public Multiset<?> member;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        int copyIntoArray(@Nullable Object[] dst, int offset) {
          return entries.copyIntoArray(dst, offset);
        }
    
        @Override
        public UnmodifiableIterator<Entry<K, V>> iterator() {
          return entries.iterator();
        }
    
        @Override
        public Spliterator<Entry<K, V>> spliterator() {
          return entries.spliterator();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

            assertCollectorState(0, 0, 0, collector);
    
            List<Resource> outResources = out.getBuild().getResources();
            Iterator<Resource> resIt = outResources.iterator();
    
            assertEquals(model.getBuild().getSourceDirectory(), resIt.next().getDirectory());
        }
    
        @Test
        public void shouldInterpolateUnprefixedBasedirExpression() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/HashMultisetTest.java

        Multiset<Multiset<?>> multiset = HashMultiset.create();
        multiset.add(multiset, 2);
        Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Only used by @GwtIncompatible code
      private static class MultisetHolder implements Serializable {
        public Multiset<?> member;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

                              public long skip(long n) {
                                return 0;
                              }
                            };
                          }
                        })
                    .iterator());
        assertEquals(0, multi.skip(-1));
        assertEquals(0, multi.skip(-1));
        assertEquals(0, multi.skip(0));
        ByteStreams.skipFully(multi, 20);
        assertEquals(20, multi.read());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.6K bytes
    - Viewed (0)
  7. guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/TestPlatform.java

     */
    
    package com.google.common.primitives;
    
    import com.google.common.annotations.GwtCompatible;
    
    @GwtCompatible(emulated = true)
    class TestPlatform {
      static int reduceIterationsIfGwt(int iterations) {
        return iterations / 10;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 07 20:59:23 UTC 2017
    - 834 bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(MANY_VALUES_STATS_ITERABLE.max()).isEqualTo(MANY_VALUES_MAX);
        // For datasets of many double values created from an iterator, we test many combinations of
        // finite and non-finite values:
        for (ManyValues values : ALL_MANY_VALUES) {
          double max = Stats.of(values.asIterable().iterator()).max();
          if (values.hasAnyNaN()) {
            assertWithMessage("max of " + values).that(max).isNaN();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Converter.java

        checkNotNull(fromIterable, "fromIterable");
        return new Iterable<B>() {
          @Override
          public Iterator<B> iterator() {
            return new Iterator<B>() {
              private final Iterator<? extends A> fromIterator = fromIterable.iterator();
    
              @Override
              public boolean hasNext() {
                return fromIterator.hasNext();
              }
    
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        return getEntryNullReplaces().getValue();
      }
    
      protected K getKeyForNullValue() {
        return getEntryNullReplaces().getKey();
      }
    
      private Entry<K, V> getEntryNullReplaces() {
        Iterator<Entry<K, V>> entries = getSampleElements().iterator();
        for (int i = 0; i < getNullLocation(); i++) {
          entries.next();
        }
        return entries.next();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top