Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 337 for valueOf (0.1 sec)

  1. logger/sql.go

    		case string:
    			vars[idx] = escaper + strings.ReplaceAll(v, escaper, escaper+escaper) + escaper
    		default:
    			rv := reflect.ValueOf(v)
    			if v == nil || !rv.IsValid() || rv.Kind() == reflect.Ptr && rv.IsNil() {
    				vars[idx] = nullStr
    			} else if valuer, ok := v.(driver.Valuer); ok {
    				v, _ = valuer.Value()
    				convertParams(v, idx)
    			} else if rv.Kind() == reflect.Ptr && !rv.IsZero() {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

                throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToUpdateCrudTable(GLOBAL, String.valueOf(body.id)));
                return null;
            }).orElseGet(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(body.id)));
                return null;
            });
            kuromojiService.store(body.dictId, entity);
            return asJson(
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/DocumentUtil.java

                    return (T) value;
                }
                return (T) Long.valueOf(value.toString());
            }
            if (clazz.isAssignableFrom(Integer.class)) {
                if (value instanceof Integer) {
                    return (T) value;
                }
                return (T) Integer.valueOf(value.toString());
            }
            if (clazz.isAssignableFrom(Double.class)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/MoreObjects.java

        }
    
        /**
         * Adds a name/value pair to the formatted output in {@code name=value} format.
         *
         * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
         */
        @CanIgnoreReturnValue
        public ToStringHelper add(String name, float value) {
          return addUnconditionalHolder(name, String.valueOf(value));
        }
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/dict/synonym/ApiAdminDictSynonymAction.java

                throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToUpdateCrudTable(GLOBAL, String.valueOf(body.id)));
                return null;
            }).orElseGet(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(body.id)));
                return null;
            });
            synonymService.store(body.dictId, entity);
            return asJson(
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. callbacks/create.go

    					values.Columns = append(values.Columns, clause.Column{Name: field.DBName})
    					for idx := range values.Values {
    						if vs[idx] == nil {
    							values.Values[idx] = append(values.Values[idx], stmt.DefaultValueOf(field))
    						} else {
    							values.Values[idx] = append(values.Values[idx], vs[idx])
    						}
    					}
    				}
    			}
    		case reflect.Struct:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. schema/constraint_test.go

    		}
    
    		for _, name := range []string{"Name", "Constraint"} {
    			if reflect.ValueOf(result).FieldByName(name).Interface() != reflect.ValueOf(v).FieldByName(name).Interface() {
    				t.Errorf(
    					"check %v %v should equal, expects %v, got %v",
    					k, name, reflect.ValueOf(result).FieldByName(name).Interface(), reflect.ValueOf(v).FieldByName(name).Interface(),
    				)
    			}
    		}
    	}
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java

                    return (T) Integer.valueOf(value.toString());
                }
            } else if (clazz.isAssignableFrom(Double.class)) {
                if (!(value instanceof Double)) {
                    return (T) Double.valueOf(value.toString());
                }
            } else if (clazz.isAssignableFrom(Float.class)) {
                if (!(value instanceof Float)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

      /** Previous version of BigIntegerMath.factorial, kept for timing purposes. */
      private static BigInteger oldSlowFactorial(int n) {
        if (n <= 20) {
          return BigInteger.valueOf(LongMath.factorial(n));
        } else {
          int k = 20;
          return BigInteger.valueOf(LongMath.factorial(k)).multiply(oldSlowFactorial(k, n));
        }
      }
    
      /** Returns the product of {@code n1} exclusive through {@code n2} inclusive. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertEquals(Integer.valueOf(0), ArbitraryInstances.get(int.class));
        assertEquals(Integer.valueOf(0), ArbitraryInstances.get(Integer.class));
        assertEquals(Long.valueOf(0), ArbitraryInstances.get(long.class));
        assertEquals(Long.valueOf(0), ArbitraryInstances.get(Long.class));
        assertEquals(Float.valueOf(0), ArbitraryInstances.get(float.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top