Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for value_or (0.12 sec)

  1. pkg/scheduler/framework/runtime/framework.go

    				newPlugins = reflect.Append(newPlugins, reflect.ValueOf(f.pluginsMap[name]))
    				enabledSet.delete(name)
    			}
    		}
    		// part 2
    		for _, name := range multiPointEnabled.list {
    			newPlugins = reflect.Append(newPlugins, reflect.ValueOf(f.pluginsMap[name]))
    		}
    		// part 3
    		for _, name := range enabledSet.list {
    			newPlugins = reflect.Append(newPlugins, reflect.ValueOf(f.pluginsMap[name]))
    		}
    		plugins.Set(newPlugins)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  2. src/fmt/print.go

    		}
    	case 's':
    		p.fmt.fmtBs(v)
    	case 'x':
    		p.fmt.fmtBx(v, ldigits)
    	case 'X':
    		p.fmt.fmtBx(v, udigits)
    	case 'q':
    		p.fmt.fmtQ(string(v))
    	default:
    		p.printValue(reflect.ValueOf(v), verb, 0)
    	}
    }
    
    func (p *pp) fmtPointer(value reflect.Value, verb rune) {
    	var u uintptr
    	switch value.Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  3. cmd/http-tracer.go

    		if !ok {
    			// Tracing is not enabled for this request
    			f.ServeHTTP(w, r)
    			return
    		}
    
    		tc.FuncName = getOpName(runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name())
    		tc.RequestRecorder.LogBody = logBody
    		tc.ResponseRecorder.LogAllBody = logBody
    		tc.ResponseRecorder.LogErrBody = true
    
    		f.ServeHTTP(w, r)
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. src/unsafe/unsafe.go

    // in the same expression:
    //
    //	p := (*int)(unsafe.Pointer(reflect.ValueOf(new(int)).Pointer()))
    //
    // As in the cases above, it is invalid to store the result before the conversion:
    //
    //	// INVALID: uintptr cannot be stored in variable
    //	// before conversion back to Pointer.
    //	u := reflect.ValueOf(new(int)).Pointer()
    //	p := (*int)(unsafe.Pointer(u))
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. src/encoding/binary/binary_test.go

    	for _, enc := range encoders {
    		for _, dec := range decoders {
    			t.Run(fmt.Sprintf("%s,%s", enc.name, dec.name), func(t *testing.T) {
    				for _, array := range intArrays {
    					src := reflect.ValueOf(array).Elem()
    					t.Run(src.Index(0).Type().Name(), func(t *testing.T) {
    						unsigned := false
    						switch src.Index(0).Kind() {
    						case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Collectors.java

                } else {
                    throw new UnsupportedOperationException();
                }
            }
    
            @Override
            public String toString() {
                return String.valueOf(provider);
            }
        }
    
        public static class ElementsFromArray<T> implements Collector<T> {
            private final T[] value;
    
            ElementsFromArray(T[] value) {
                this.value = value;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:15:09 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

              table,
              immutableTable);
        }
    
        final void check() {
          runTester()
              .assertNonNullValues(
                  Gender.MALE,
                  Integer.valueOf(0),
                  0,
                  "",
                  "",
                  ImmutableList.of(),
                  ImmutableList.of(),
                  ImmutableMap.of(),
                  ImmutableMap.of(),
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  8. src/text/template/funcs.go

    func addValueFuncs(out map[string]reflect.Value, in FuncMap) {
    	for name, fn := range in {
    		if !goodName(name) {
    			panic(fmt.Errorf("function name %q is not a valid identifier", name))
    		}
    		v := reflect.ValueOf(fn)
    		if v.Kind() != reflect.Func {
    			panic("value for " + name + " not a function")
    		}
    		if err := goodFunc(name, v.Type()); err != nil {
    			panic(err)
    		}
    		out[name] = v
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

            String[] secondSegments = second.split("\\.");
            for (int i = 0; i < Math.max(firstSegments.length, secondSegments.length); i++) {
                int result = Long.valueOf(i < firstSegments.length ? firstSegments[i] : "0")
                        .compareTo(Long.valueOf(i < secondSegments.length ? secondSegments[i] : "0"));
                if (result != 0) {
                    return result;
                }
            }
            return 0;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 10 11:04:53 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  10. src/go/types/stmt.go

    		if x.mode == invalid {
    			return
    		}
    		if !allNumeric(x.typ) {
    			check.errorf(s.X, NonNumericIncDec, invalidOp+"%s%s (non-numeric type %s)", s.X, s.Tok, x.typ)
    			return
    		}
    
    		Y := &ast.BasicLit{ValuePos: s.X.Pos(), Kind: token.INT, Value: "1"} // use x's position
    		check.binary(&x, nil, s.X, Y, op, s.TokPos)
    		if x.mode == invalid {
    			return
    		}
    		check.assignVar(s.X, nil, &x, "assignment")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top