Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 604 for switches (0.07 sec)

  1. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

         * @param pattern
         *            the pattern string
         * @return the converted {@link Long}
         */
        public static Long toLong(final Object o, final String pattern) {
            return switch (o) {
            case null -> null;
            case Long l -> l;
            case Number n -> n.longValue();
            case String s -> toLong(s);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. schema/utils.go

    		appendToResults := func(value reflect.Value) {
    			if _, isZero := rel.Field.ValueOf(ctx, value); !isZero {
    				result := reflect.Indirect(rel.Field.ReflectValueOf(ctx, value))
    				switch result.Kind() {
    				case reflect.Struct:
    					reflectResults = reflect.Append(reflectResults, result.Addr())
    				case reflect.Slice, reflect.Array:
    					for i := 0; i < result.Len(); i++ {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Feb 13 06:16:26 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. statement.go

    					stmt.Dest = destValueCanAddr.Interface()
    					destValue = destValueCanAddr.Elem()
    				}
    
    				switch destValue.Kind() {
    				case reflect.Struct:
    					stmt.AddError(field.Set(stmt.Context, destValue, value))
    				default:
    					stmt.AddError(ErrInvalidData)
    				}
    			}
    
    			switch stmt.ReflectValue.Kind() {
    			case reflect.Slice, reflect.Array:
    				if len(fromCallbacks) > 0 {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. cmd/healthcheck-handler.go

    		writeResponse(w, http.StatusOK, nil, mimeNone)
    		return
    	}
    
    	if int(globalHTTPStats.loadRequestsInQueue()) > globalAPIConfig.getRequestsPoolCapacity() {
    		apiErr := getAPIError(ErrBusy)
    		switch r.Method {
    		case http.MethodHead:
    			writeResponse(w, apiErr.HTTPStatusCode, nil, mimeNone)
    		case http.MethodGet:
    			writeErrorResponse(r.Context(), w, apiErr, r.URL)
    		}
    		return
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 26 07:44:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/arch/s390x.go

    // s390x instruction set, to minimize its interaction
    // with the core of the assembler.
    
    package arch
    
    import (
    	"cmd/internal/obj/s390x"
    )
    
    func jumpS390x(word string) bool {
    	switch word {
    	case "BRC",
    		"BC",
    		"BCL",
    		"BEQ",
    		"BGE",
    		"BGT",
    		"BL",
    		"BLE",
    		"BLEU",
    		"BLT",
    		"BLTU",
    		"BNE",
    		"BR",
    		"BVC",
    		"BVS",
    		"BRCT",
    		"BRCTG",
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Oct 17 14:55:25 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  6. callbacks/associations.go

    								dest[ref.ForeignKey.DBName] = pv
    								if _, ok := dest[rel.Name]; ok {
    									dest[rel.Name] = elem.Interface()
    								}
    							}
    						}
    					}
    				}
    
    				switch db.Statement.ReflectValue.Kind() {
    				case reflect.Slice, reflect.Array:
    					var (
    						rValLen   = db.Statement.ReflectValue.Len()
    						objs      = make([]reflect.Value, 0, rValLen)
    						fieldType = rel.Field.FieldType
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Feb 13 06:16:26 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  7. .github/bot_config.yml

          * Try Google Colab to use TensorFlow.
             * The easiest way to use TF will be to switch to [google colab](https://colab.sandbox.google.com/notebooks/welcome.ipynb#recent=true). You get pre-installed latest stable TF version. Also you can use ```pip install```  to install any other preferred TF version.
             * It has an added advantage since you can you easily switch to different hardware accelerators (cpu, gpu, tpu) as per the task.
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Jun 30 16:38:59 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            String recordTypeString;
            final String recordClassString;
    
            opCodeString = switch (opCode) {
            case QUERY -> "QUERY";
            case WACK -> "WACK";
            default -> Integer.toString(opCode);
            };
            resultCodeString = switch (resultCode) {
            case FMT_ERR -> "FMT_ERR";
            case SRV_ERR -> "SRV_ERR";
            case IMP_ERR -> "IMP_ERR";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/netbios/NameServicePacket.java

            String opCodeString, resultCodeString, questionTypeString, recordTypeString;
    
            opCodeString = switch (this.opCode) {
            case QUERY -> "QUERY";
            case WACK -> "WACK";
            default -> Integer.toString(this.opCode);
            };
            resultCodeString = switch (this.resultCode) {
            case FMT_ERR -> "FMT_ERR";
            case SRV_ERR -> "SRV_ERR";
            case IMP_ERR -> "IMP_ERR";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. scan.go

    	if len(db.Statement.ColumnMapping) > 0 {
    		for i, column := range columns {
    			v, ok := db.Statement.ColumnMapping[column]
    			if ok {
    				columns[i] = v
    			}
    		}
    	}
    
    	db.RowsAffected = 0
    
    	switch dest := db.Statement.Dest.(type) {
    	case map[string]interface{}, *map[string]interface{}:
    		if initialized || rows.Next() {
    			columnTypes, _ := rows.ColumnTypes()
    			prepareValues(values, db, columnTypes, columns)
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top