Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 254 for setValue1 (0.15 sec)

  1. src/internal/syscall/windows/registry/registry_test.go

    		{registry.MULTI_SZ, "MultiString4", []byte{'a', 0, 0, 'b', 0}},
    		{registry.MULTI_SZ, "MultiString5", []byte{'a', 0, 0}},
    	}
    
    	for _, test := range tests {
    		err := k.SetValue(test.Name, test.Type, test.Data)
    		if err != nil {
    			t.Fatalf("SetValue for %q failed: %v", test.Name, err)
    		}
    	}
    
    	for _, test := range tests {
    		switch test.Type {
    		case registry.DWORD, registry.QWORD:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testSetValue() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
            break;
          }
        }
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testSetValue() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
            break;
          }
        }
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java

      public void testSetValue_valueAbsent() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
          }
        }
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(SEVERAL)
      public void testSetValue_valuePresent() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 2.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/MethodOptionElement.java

            }
    
            @Override
            public Type getGenericType() {
                return method.getGenericParameterTypes()[0];
            }
    
            @Override
            public void setValue(Object target, Object value) {
                JavaMethod.of(Object.class, method).invoke(target, value);
            }
        }
    
        private static class PropertyValueSetter implements PropertySetter {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 11 11:28:20 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/main/java/org/gradle/external/javadoc/internal/JavadocOptionFileOptionInternalAdapter.java

        public String getOption() {
            return option.getOption();
        }
    
        @Override
        public T getValue() {
            return option.getValue();
        }
    
        @Override
        public void setValue(T value) {
            option.setValue(value);
        }
    
        @Override
        public void write(JavadocOptionFileWriterContext writerContext) throws IOException {
            option.write(writerContext);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/CombinedFuture.java

           * InterruptibleTask itself might also eliminate some of the existing boilerplate for, e.g.,
           * pendingToString().)
           */
          CombinedFuture.this.task = null;
    
          setValue(result);
        }
    
        @Override
        final void afterRanInterruptiblyFailure(Throwable error) {
          // See afterRanInterruptiblySuccess.
          CombinedFuture.this.task = null;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/CombinedFuture.java

           * InterruptibleTask itself might also eliminate some of the existing boilerplate for, e.g.,
           * pendingToString().)
           */
          CombinedFuture.this.task = null;
    
          setValue(result);
        }
    
        @Override
        final void afterRanInterruptiblyFailure(Throwable error) {
          // See afterRanInterruptiblySuccess.
          CombinedFuture.this.task = null;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/test/groovy/org/gradle/external/javadoc/internal/BooleanJavadocOptionFileOptionTest.groovy

            then:
            0 * _._
        }
    
        def testWriteFalseValue() throws IOException {
            booleanOption.setValue(false)
    
            when:
            booleanOption.write(writerContextMock)
    
            then:
            0 * _._
        }
    
        def testWriteTrueValue() throws IOException {
            booleanOption.setValue(true)
    
            when:
            booleanOption.write(writerContextMock)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/reporting/model/ModelReportIntegrationTest.groovy

            given:
            buildFile << '''
    
    @Managed
    interface Container {
       List<String> getLabels()
       List<Integer> getIds()
       List<Double> getValues()
       void setValues(List<Double> values)
    }
    
    model {
        container(Container) {
            labels.add 'bug'
            labels.add 'blocker'
        }
    }
    '''
            when:
            run "model"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 13:32:55 UTC 2024
    - 22K bytes
    - Viewed (0)
Back to top