Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 363 for putNull (0.12 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/NullValueSnapshot.java

            if (value == null) {
                return this;
            }
            return snapshotter.snapshot(value);
        }
    
        @Override
        public void appendToHasher(Hasher hasher) {
            hasher.putNull();
        }
    
        @Override
        public ValueSnapshot asSnapshot() {
            return this;
        }
    
        @Override
        public Object isolate() {
            return null;
        }
    
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ImmutableManagedValueSnapshot.java

        }
    
        @Override
        public void appendToHasher(Hasher hasher) {
            hasher.putString(className);
            if (value != null) {
                hasher.putString(value);
            } else {
                hasher.putNull();
            }
        }
    
        @Override
        public String toString() {
            return "(" + className + ") " + value;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/GradleSerializedValueSnapshot.java

                    return true;
                }
            }
            return false;
        }
    
        @Override
        public void appendToHasher(Hasher hasher) {
            if (implementationHash == null) {
                hasher.putNull();
            } else {
                hasher.putHash(implementationHash);
            }
            hasher.putBytes(serializedValue);
        }
    
        @Override
        public boolean equals(Object obj) {
            if (obj == this) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hasher.java

        /**
         * Puts a hashable value into the hasher.
         */
        void put(Hashable hashable);
    
        /**
         * Feed a {@code null} value into the hasher.
         */
        void putNull();
    
        /**
         * Returns the combined hash.
         *
         * If the build cache hash is invalid, an exception is thrown.
         *
         * @throws IllegalStateException if the hasher state is invalid.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 11:14:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/JavaSerializedValueSnapshot.java

                return this;
            }
            return snapshot;
        }
    
        @Override
        public void appendToHasher(Hasher hasher) {
            if (implementationHash == null) {
                hasher.putNull();
            } else {
                hasher.putHash(implementationHash);
            }
            hasher.putBytes(serializedValue);
        }
    
        @Override
        public boolean equals(Object obj) {
            if (obj == this) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 12:37:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashingTest.groovy

            then:
            hashes.size() == threadRange.size()
        }
    
        def 'null does not collide with other values'() {
            expect:
            def hasher = Hashing.newHasher()
            hasher.putNull()
            def hash = hasher.hash()
            hash != Hashing.hashString("abc")
        }
    
        def 'hash collision for bytes'() {
            def left = [[1, 2, 3], [4, 5]]
            def right = [[1, 2], [3, 4, 5]]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

            }
    
            @Override
            public void put(Hashable hashable) {
                hashable.appendToHasher(this);
            }
    
            @Override
            public void putNull() {
                this.putInt(0);
            }
    
            @Override
            public HashCode hash() {
                return hasher.hash();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. src/runtime/mgcwork.go

    //go:nowritebarrier
    func putempty(b *workbuf) {
    	b.checkempty()
    	work.empty.push(&b.node)
    }
    
    // putfull puts the workbuf on the work.full list for the GC.
    // putfull accepts partially full buffers so the GC can avoid competing
    // with the mutators for ownership of partially full buffers.
    //
    //go:nowritebarrier
    func putfull(b *workbuf) {
    	b.checknonempty()
    	work.full.push(&b.node)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

      public void testPutAllNonEmptyCollectionOnPresentKey() {
        assertTrue(multimap().putAll(k0(), Lists.newArrayList(v3(), v4())));
        assertGet(k0(), v0(), v3(), v4());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllNonEmptyIterableOnAbsentKey() {
        assertTrue(
            multimap()
                .putAll(
                    k3(),
                    new Iterable<V>() {
                      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 7.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      public void testPutAll_supportedNonePresent() {
        putAll(createDisjointCollection());
        expectAdded(e3(), e4());
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testPutAll_unsupportedNonePresent() {
        try {
          putAll(createDisjointCollection());
          fail("putAll(nonePresent) should throw");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top