Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 529 for hasNet (0.05 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

            expectContents(elements);
          }
        }.test();
      }
    
      public void testIteratorNoSuchElementException() {
        Iterator<E> iterator = collection.iterator();
        while (iterator.hasNext()) {
          iterator.next();
        }
    
        assertThrows(NoSuchElementException.class, () -> iterator.next());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

        // GWT's ConcurrentHashMap is a wrapper around HashMap, but it rejects null keys, which matches
        // the behaviour of the non-GWT implementation of newConcurrentHashSet().
        // On the other hand HashSet might be better for code size if apps aren't
        // already using Collections.newSetFromMap and ConcurrentHashMap.
        return Collections.newSetFromMap(new ConcurrentHashMap<E, Boolean>());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Lists.java

            }
    
            @Override
            public boolean hasNext() {
              return forwardIterator.hasPrevious();
            }
    
            @Override
            public boolean hasPrevious() {
              return forwardIterator.hasNext();
            }
    
            @Override
            @ParametricNullness
            public T next() {
              if (!hasNext()) {
                throw new NoSuchElementException();
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        Itr(Object[] array) {
          lastRet = -1;
          this.array = array;
        }
    
        @CanIgnoreReturnValue // pushed down from class to method
        @Override
        public boolean hasNext() {
          return cursor < array.length;
        }
    
        @CanIgnoreReturnValue // pushed down from class to method
        @Override
        public E next() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. android/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;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(0, multiset.toArray().length);
        assertTrue(multiset.entrySet().isEmpty());
        assertFalse(multiset.iterator().hasNext());
        assertEquals(0, multiset.entrySet().size());
        assertEquals(0, multiset.entrySet().toArray().length);
        assertFalse(multiset.entrySet().iterator().hasNext());
      }
    
      public void testEmptyRangeSubMultisetSupportingAdd(SortedMultiset<E> multiset) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      }
    
      fun cancel() {
        codec.cancel()
      }
    
      /**
       * Revoke this exchange's access to streams. This is necessary when a follow-up request is
       * required but the preceding exchange hasn't completed yet.
       */
      fun detachWithViolence() {
        codec.cancel()
        call.messageDone(this, requestDone = true, responseDone = true, e = null)
      }
    
      private fun trackFailure(e: IOException) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

          resetContainer();
    
          int size = getNumElements();
    
          Iterator<Entry<K, Collection<V>>> asMapItr = multimap().asMap().entrySet().iterator();
          Collection<V> collection = null;
          while (asMapItr.hasNext()) {
            Entry<K, Collection<V>> asMapEntry = asMapItr.next();
            if (key.equals(asMapEntry.getKey())) {
              collection = asMapEntry.getValue();
              break;
            }
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

          resetContainer();
    
          int size = getNumElements();
    
          Iterator<Entry<K, Collection<V>>> asMapItr = multimap().asMap().entrySet().iterator();
          Collection<V> collection = null;
          while (asMapItr.hasNext()) {
            Entry<K, Collection<V>> asMapEntry = asMapItr.next();
            if (key.equals(asMapEntry.getKey())) {
              collection = asMapEntry.getValue();
              break;
            }
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/SipHashFunction.java

        this.c = c;
        this.d = d;
        this.k0 = k0;
        this.k1 = k1;
      }
    
      @Override
      public int bits() {
        return 64;
      }
    
      @Override
      public Hasher newHasher() {
        return new SipHasher(c, d, k0, k1);
      }
    
      // TODO(kak): Implement and benchmark the hashFoo() shortcuts.
    
      @Override
      public String toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 5.3K bytes
    - Viewed (0)
Back to top