Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for hasExt (0.16 sec)

  1. guava/src/com/google/common/collect/Multimaps.java

              return new Iterator<V>() {
                int i;
    
                @Override
                public boolean hasNext() {
                  return (i == 0) && map.containsKey(key);
                }
    
                @Override
                @ParametricNullness
                public V next() {
                  if (!hasNext()) {
                    throw new NoSuchElementException();
                  }
                  i++;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

            container.isEmpty()
            container.size() == 0
        }
    
        def "can iterate over empty collection"() {
            expect:
            def iterator = container.iterator()
            !iterator.hasNext()
        }
    
        def "does not add elements with duplicate name"() {
            containerAllowsElementAddition()
    
            given:
            container.add(a)
    
            when:
            container.add(a)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEmpty(Sets.cartesianProduct(set(1), mt));
      }
    
      private static void assertEmpty(Set<? extends List<?>> set) {
        assertTrue(set.isEmpty());
        assertEquals(0, set.size());
        assertFalse(set.iterator().hasNext());
      }
    
      public void testCartesianProduct_binary1x1() {
        assertThat(Sets.cartesianProduct(set(1), set(2))).contains(list(1, 2));
      }
    
      public void testCartesianProduct_binary1x2() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  4. src/runtime/mgcpacer.go

    	if gcBlackenEnabled == 0 {
    		throw("gcControllerState.findRunnable: blackening not enabled")
    	}
    
    	// Since we have the current time, check if the GC CPU limiter
    	// hasn't had an update in a while. This check is necessary in
    	// case the limiter is on but hasn't been checked in a while and
    	// so may have left sufficient headroom to turn off again.
    	if now == 0 {
    		now = nanotime()
    	}
    	if gcCPULimiter.needUpdate(now) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

       * {@code maximumSize / concurrencyLevel}.
       *
       * <p>When eviction is necessary, the cache evicts entries that are less likely to be used again.
       * For example, the cache may evict an entry because it hasn't been used recently or very often.
       *
       * <p>If {@code maximumSize} is zero, elements will be evicted immediately after being loaded into
       * cache. This can be useful in testing, or to disable caching temporarily.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager_test.go

    		),
    	)
    
    	// no healthy devices for resourceName1 and devices corresponding to
    	// resource2 are intentionally omitted to simulate that the resource
    	// hasn't been registered.
    	testManager.healthyDevices[resourceName1] = sets.New[string]()
    	testManager.healthyDevices[resourceName3] = sets.New[string]()
    	// dev5 is no longer in the list of healthy devices
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  7. src/runtime/mheap.go

    	// checkmarks stores the debug.gccheckmark state. It is only
    	// used if debug.gccheckmark > 0.
    	checkmarks *checkmarksMap
    
    	// zeroedBase marks the first byte of the first page in this
    	// arena which hasn't been used yet and is therefore already
    	// zero. zeroedBase is relative to the arena base.
    	// Increases monotonically until it hits heapArenaBytes.
    	//
    	// This field is sufficient to determine if an allocation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  8. src/internal/trace/order.go

    	pid := ProcID(ev.args[0])
    	seq := makeSeq(gen, ev.args[1])
    
    	// Try to advance. We might fail here due to sequencing, because the P hasn't
    	// had a status emitted, or because we already have a P and we're in a syscall,
    	// and we haven't observed that it was stolen from us yet.
    	state, ok := o.pStates[pid]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  9. pkg/kubelet/pod_workers_test.go

    		Pod:        newNamedPod("6-static", "test1", "pod1", true),
    		UpdateType: kubetypes.SyncPodUpdate,
    	})
    	drainWorkersExcept(podWorkers, "5-static")
    
    	// pod 5 should have termination requested, but hasn't cleaned up
    	pod5 := podWorkers.podSyncStatuses[types.UID("5-static")]
    	if !pod5.IsTerminationRequested() || pod5.IsTerminated() {
    		t.Fatalf("unexpected status for pod 5: %#v", pod5)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  10. src/runtime/map.go

    			it.elem = nil
    			return
    		}
    		if h.growing() && it.B == h.B {
    			// Iterator was started in the middle of a grow, and the grow isn't done yet.
    			// If the bucket we're looking at hasn't been filled in yet (i.e. the old
    			// bucket hasn't been evacuated) then we need to iterate through the old
    			// bucket and only return the ones that will be migrated to this bucket.
    			oldbucket := bucket & it.h.oldbucketmask()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
Back to top