- Sort Score
- Result 10 results
- Languages All
Results 51 - 58 of 58 for newValue3 (0.12 sec)
-
android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
Integer oldValue = map.putInstance(Integer.class, Integer.valueOf(7)); assertEquals(5, (int) oldValue); Integer newValue = map.getInstance(Integer.class); assertEquals(7, (int) newValue); assertEquals(7, (int) map.getInstance(TypeToken.of(Integer.class))); // Won't compile: map.putInstance(Double.class, new Long(42)); } public void testNull() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 7.9K bytes - Viewed (0) -
src/unique/handle.go
// the first one we make around, we can avoid generating // more than one per racing thread. var ( toInsert *T // Keep this around to keep it alive. toInsertWeak weak.Pointer[T] ) newValue := func() weak.Pointer[T] { if toInsert == nil { toInsert = new(T) *toInsert = clone(value, &m.cloneSeq) toInsertWeak = weak.Make(toInsert) } return toInsertWeak } var ptr *T for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 5.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/model/CalculatedModelValue.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 08:26:24 UTC 2024 - 2.4K bytes - Viewed (0) -
src/mdo/java/WrapperProperties.java
return writeOperation(p -> p.remove(key, value)); } @Override public synchronized boolean replace(Object key, Object oldValue, Object newValue) { return writeOperation(p -> p.replace(key, oldValue, newValue)); } @Override public synchronized Object replace(Object key, Object value) { return writeOperation(p -> p.replace(key, value)); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Mar 01 16:30:18 UTC 2024 - 9.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultMinimalDependencyVariant.java
protected void validateMutation() { throw new UnsupportedOperationException("Minimal dependencies are immutable."); } @Override protected void validateMutation(Object currentValue, Object newValue) { validateMutation(); } @Override public void mutateAttributes(AttributeContainer attributes) { attributesMutator.execute(attributes); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 15 16:36:23 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/proto/merge/merge.go
// Merge semantics replaces, rather than merges into existing entries. src.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { switch { case fd.Message() != nil: dstv := dst.NewValue() o.mergeMessage(dstv.Message(), v.Message()) dst.Set(k, dstv) case fd.Kind() == protoreflect.BytesKind: dst.Set(k, o.cloneBytes(v)) default: dst.Set(k, v) } return true })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 21 17:31:22 UTC 2022 - 4.8K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/GroovyCodecs.kt
} throw MissingPropertyException(propertyName) } scriptReferenced() } override fun setProperty(propertyName: String, newValue: Any?) { // See above for why this check happens if (targetMetadata.hasProperty(null, propertyName) == null) { throw MissingPropertyException(propertyName) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 6.1K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryCacheTest.groovy
} def rebuildsCacheWhenPropertyIsAdded() { given: def dir = createCacheDir() def properties = properties + [newProp: 'newValue'] def cache = new DefaultPersistentDirectoryCache(dir, "<display-name>", properties, mode(FileLockManager.LockMode.Shared), initializationAction, cacheCleanup, lockManager, Mock(ExecutorFactory), buildOperationRunner)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 16:40:49 UTC 2024 - 9.3K bytes - Viewed (0)