Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 531 - 540 of 662 for hasTest (0.06 seconds)

  1. android/guava/src/com/google/common/collect/ImmutableMultiset.java

        return new UnmodifiableIterator<E>() {
          int remaining;
          @Nullable E element;
    
          @Override
          public boolean hasNext() {
            return (remaining > 0) || entryIterator.hasNext();
          }
    
          @Override
          public E next() {
            if (remaining <= 0) {
              Entry<E> entry = entryIterator.next();
              element = entry.getElement();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/math/DoubleMath.java

      // com.google.common.math.DoubleUtils
      @GwtIncompatible
      public static double mean(Iterator<? extends Number> values) {
        checkArgument(values.hasNext(), "Cannot take mean of 0 values");
        long count = 1;
        double mean = checkFinite(values.next().doubleValue());
        while (values.hasNext()) {
          double value = checkFinite(values.next().doubleValue());
          count++;
          // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

    import com.google.common.testing.SerializableTester;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.EnumSet;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import junit.framework.TestSuite;
    
    /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 26.8K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/TreeBasedTable.java

                comparator);
    
        return new AbstractIterator<C>() {
          @Nullable C lastValue;
    
          @Override
          protected @Nullable C computeNext() {
            while (merged.hasNext()) {
              C next = merged.next();
              boolean duplicate = lastValue != null && comparator.compare(next, lastValue) == 0;
    
              // Keep looping till we find a non-duplicate value.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 18 15:05:43 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/HashBiMapTest.java

        Entry<String, Integer> entry = inverseEntryItr.next();
        entry.setValue(3);
        assertEquals(immutableEntry("b", 2), inverseEntryItr.next());
        assertFalse(inverseEntryItr.hasNext());
        assertThat(map.entrySet())
            .containsExactly(immutableEntry(2, "b"), immutableEntry(3, "a"))
            .inOrder();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testDescendingNavigation() {
        List<E> descending = new ArrayList<>();
        for (Iterator<E> i = navigableSet.descendingIterator(); i.hasNext(); ) {
          descending.add(i.next());
        }
        Collections.reverse(descending);
        assertEquals(values, descending);
      }
    
      public void testEmptySubSet() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 8.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Collections2.java

        }
    
        @Override
        public boolean removeAll(Collection<?> collection) {
          boolean changed = false;
          Iterator<E> itr = unfiltered.iterator();
          while (itr.hasNext()) {
            E e = itr.next();
            if (predicate.apply(e) && collection.contains(e)) {
              itr.remove();
              changed = true;
            }
          }
          return changed;
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

    import java.io.File;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.nio.file.Path;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    
    import org.apache.maven.RepositoryUtils;
    import org.apache.maven.artifact.Artifact;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 33.5K bytes
    - Click Count (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.URI;
    import java.net.URISyntaxException;
    import java.time.Duration;
    import java.util.HashSet;
    import java.util.Queue;
    import java.util.Set;
    import java.util.concurrent.ConcurrentLinkedQueue;
    
    import org.apache.commons.lang3.StringUtils;
    import org.apache.commons.net.ftp.FTP;
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 40K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        static final GetCheckedTypeValidator BEST_VALIDATOR = getBestValidator();
    
        enum WeakSetValidator implements GetCheckedTypeValidator {
          INSTANCE;
    
          /*
           * Static final fields are presumed to be fastest, based on our experience with
           * UnsignedBytesBenchmark. TODO(cpovirk): benchmark this
           */
          /*
           * A CopyOnWriteArraySet<WeakReference> is faster than a newSetFromMap of a MapMaker map with
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 10.2K bytes
    - Click Count (0)
Back to Top