Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 133 for newSet (0.12 sec)

  1. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

          if (eventSubscribers == null) {
            CopyOnWriteArraySet<Subscriber> newSet = new CopyOnWriteArraySet<>();
            eventSubscribers =
                MoreObjects.firstNonNull(subscribers.putIfAbsent(eventType, newSet), newSet);
          }
    
          eventSubscribers.addAll(eventMethodsInListener);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertThat(request.header("d")).isEqualTo("f")
        val requestHeaders = request.headers
        assertThat(LinkedHashSet(requestHeaders.values("D"))).isEqualTo(newSet("e", "f"))
        assertThat(LinkedHashSet(requestHeaders.values("d"))).isEqualTo(newSet("e", "f"))
        val response = getResponse(request)
        response.close()
        val recordedRequest = server.takeRequest()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  3. tests/helper_test.go

    func doCheckPet(t *testing.T, pet Pet, expect Pet, unscoped bool) {
    	if pet.ID != 0 {
    		var newPet Pet
    		if err := db(unscoped).Where("id = ?", pet.ID).First(&newPet).Error; err != nil {
    			t.Fatalf("errors happened when query: %v", err)
    		} else {
    			AssertObjEqual(t, newPet, pet, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name")
    			AssertObjEqual(t, newPet, expect, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name")
    		}
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

         * newest entry exceeds the maximum weight all on its own.
         *
         * @param newest the most recently added entry
         */
        @GuardedBy("this")
        void evictEntries(ReferenceEntry<K, V> newest) {
          if (!map.evictsBySize()) {
            return;
          }
    
          drainRecencyQueue();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java

    /**
     * Resolves conflicting artifacts by always selecting the newest declaration. Newest is defined as the
     * declaration whose version is greater according to <code>ArtifactVersion.compareTo</code>.
     *
     * @see ArtifactVersion#compareTo
     * @since 3.0
     */
    @Named("newest")
    @Singleton
    @Deprecated
    public class NewestConflictResolver implements ConflictResolver {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. misc/cgo/gmp/pi.go

    //go:build ignore
    
    package main
    
    import (
    	big "."
    	"fmt"
    	"runtime"
    )
    
    var (
    	tmp1  = big.NewInt(0)
    	tmp2  = big.NewInt(0)
    	numer = big.NewInt(1)
    	accum = big.NewInt(0)
    	denom = big.NewInt(1)
    	ten   = big.NewInt(10)
    )
    
    func extractDigit() int64 {
    	if big.CmpInt(numer, accum) > 0 {
    		return -1
    	}
    	tmp1.Lsh(numer, 1).Add(tmp1, numer).Add(tmp1, accum)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. internal/grid/handlers.go

    // Use Call to initiate a clientside call.
    func NewSingleHandler[Req, Resp RoundTripper](h HandlerID, newReq func() Req, newResp func() Resp) *SingleHandler[Req, Resp] {
    	s := SingleHandler[Req, Resp]{id: h}
    	s.newReq, s.recycleReq = recycleFunc[Req](newReq)
    	s.newResp, s.recycleResp = recycleFunc[Resp](newResp)
    	if _, ok := any(newReq()).(Recycler); ok {
    		s.callReuseReq = true
    	}
    	return &s
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            warmed.add(entryOf(entry.getKey(), newValue));
            Object newKey = new Object();
            assertNull(cache.asMap().put(newKey, entry.getValue()));
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertEquals(newValue, cache.getUnchecked(entry.getKey()));
            assertEquals(entry.getValue(), cache.getUnchecked(newKey));
            // don't let the new entry get GCed
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. cmd/object-api-listobjects_test.go

    			Objects: []ObjectInfo{
    				{Name: "newPrefix1"},
    				{Name: "newzen/zen/recurse/again/again/again/pics"},
    				{Name: "obj0"},
    				{Name: "obj1"},
    				{Name: "obj2"},
    			},
    		},
    		// ListObjectsResult-10.
    		// marker is set to "newPrefix1" in the testCase, (testCase 34).
    		10: {
    			IsTruncated: false,
    			Objects: []ObjectInfo{
    				{Name: "newzen/zen/recurse/again/again/again/pics"},
    				{Name: "obj0"},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            warmed.add(entryOf(entry.getKey(), newValue));
            Object newKey = new Object();
            assertNull(cache.asMap().put(newKey, entry.getValue()));
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertEquals(newValue, cache.getUnchecked(entry.getKey()));
            assertEquals(entry.getValue(), cache.getUnchecked(newKey));
            // don't let the new entry get GCed
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top