Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 722 for Iterator (0.17 sec)

  1. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        assertThat(DoubleMath.mean(ImmutableList.of(11, -22, 44, -88).iterator()))
            .isWithin(1.0e-10)
            .of(-13.75);
        assertThat(DoubleMath.mean(ImmutableList.of(11).iterator())).isWithin(1.0e-10).of(11);
        assertThrows(
            IllegalArgumentException.class,
            () -> DoubleMath.mean(ImmutableList.<Integer>of().iterator()));
      }
    
      @GwtIncompatible // DoubleMath.mean
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/PredicatesTest.java

        final List<Predicate<Object>> list = newArrayList();
        Iterable<Predicate<Object>> iterable =
            new Iterable<Predicate<Object>>() {
              @Override
              public Iterator<Predicate<Object>> iterator() {
                return list.iterator();
              }
            };
        Predicate<Object> predicate = Predicates.and(iterable);
        assertTrue(predicate.apply(1));
        list.add(Predicates.alwaysFalse());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

      private ImmutableEnumMap(EnumMap<K, V> delegate) {
        this.delegate = delegate;
        checkArgument(!delegate.isEmpty());
      }
    
      @Override
      UnmodifiableIterator<K> keyIterator() {
        return Iterators.unmodifiableIterator(delegate.keySet().iterator());
      }
    
      @Override
      public int size() {
        return delegate.size();
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

          return standardToString();
        }
    
        @Override
        public Set<Entry<K, V>> entrySet() {
          return new StandardEntrySet() {
            @Override
            public Iterator<Entry<K, V>> iterator() {
              return backingMap.entrySet().iterator();
            }
          };
        }
    
        @Override
        public void clear() {
          standardClear();
        }
    
        @Override
        public boolean isEmpty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

            } catch (NullPointerException | ClassCastException e) {
              return false;
            }
          }
    
          @Override
          public Iterator<Entry<K, V>> iterator() {
            return delegate().iterator();
          }
    
          @Override
          public int size() {
            return delegate().size();
          }
    
          @Override
          public boolean remove(Object o) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java

            result = artifactResolver.resolveTransitively(
                    set, projectArtifact, remoteRepositories(), localRepository(), mds);
    
            printErrors(result);
    
            Iterator<Artifact> i = result.getArtifacts().iterator();
            assertEquals(n, i.next(), "n should be first");
            assertEquals(m, i.next(), "m should be second");
    
            // inverse order
            set = new LinkedHashSet<>();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

                Currency.PESO, Country.CHILE,
                Currency.FRANC, Country.SWITZERLAND);
        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map);
    
        Iterator<Currency> iter = bimap.keySet().iterator();
        assertEquals(Currency.DOLLAR, iter.next());
        iter.remove();
    
        // forward map ordered by currency
        assertThat(bimap.keySet()).containsExactly(Currency.FRANC, Currency.PESO).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

          }
        }
        val outputStream = socket.getOutputStream()
        val inputStream = socket.getInputStream()
        val reader = Http2Reader(inputStream.source().buffer(), client)
        val outFramesIterator: Iterator<OutFrame> = outFrames.iterator()
        val outBytes = bytesOut.readByteArray()
        var nextOutFrame: OutFrame? = null
        for (i in 0 until frameCount) {
          if (nextOutFrame == null && outFramesIterator.hasNext()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. test-site/activator-launch-1.3.2.jar

    scala.Option find(scala.Function1); public abstract immutable.Stream toStream(); } scala/collection/Iterator$.class package scala.collection; public final synchronized class Iterator$ { public static final Iterator$ MODULE$; private final Iterator empty; public static void <clinit>(); public final Iterator empty(); public static Iterator apply$60f8f0d8(GenSeq); private void Iterator$(); } scala/collection/Iterator$$anonfun$toStream$1.class package scala.collection; public final synchronized class Iterato...
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 1.2M bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> asMapEntrySet = multimap().asMap().entrySet();
        Iterator<Entry<K, Collection<V>>> asMapEntryItr = asMapEntrySet.iterator();
        asMapEntryItr.next();
        asMapEntryItr.remove();
        assertTrue(multimap().isEmpty());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top