Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 169 for valueOf (0.09 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
        assertEquals(Integer.valueOf(2), map.get(54));
        assertEquals(Integer.valueOf(3), map.get(443));
        assertEquals(Integer.valueOf(4), map.get(1));
        assertEquals(Integer.valueOf(5), cache.get(6));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/IntMathTest.java

            // The BigInteger implementation is tested separately, use it as the reference.
            // Promote the int value (rather than using intValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(int, FLOOR). */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

          for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
            // Promote the long value (rather than using longValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(LongMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(long, FLOOR). */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/IntMathTest.java

            // The BigInteger implementation is tested separately, use it as the reference.
            // Promote the int value (rather than using intValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(int, FLOOR). */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

      }
    
      public void testRoundToDouble_smallNegative() {
        new RoundToDoubleTester(BigDecimal.valueOf(-16)).setExpectation(-16.0, values()).test();
      }
    
      public void testRoundToDouble_minPreciselyRepresentable() {
        new RoundToDoubleTester(BigDecimal.valueOf(-1L << 53))
            .setExpectation(-Math.pow(2, 53), values())
            .test();
      }
    
      public void testRoundToDouble_minPreciselyRepresentableMinusOne() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        for (long value : TEST_LONGS) {
          assertWithMessage(UnsignedLongs.toString(value))
              .that(UnsignedLong.fromLongBits(value).longValue())
              .isEqualTo(value);
        }
      }
    
      public void testAsUnsignedBigIntegerValue() {
        for (long value : TEST_LONGS) {
          BigInteger expected =
              (value >= 0)
                  ? BigInteger.valueOf(value)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        for (long value : TEST_LONGS) {
          assertWithMessage(UnsignedLongs.toString(value))
              .that(UnsignedLong.fromLongBits(value).longValue())
              .isEqualTo(value);
        }
      }
    
      public void testAsUnsignedBigIntegerValue() {
        for (long value : TEST_LONGS) {
          BigInteger expected =
              (value >= 0)
                  ? BigInteger.valueOf(value)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. statement.go

    						values := make([]interface{}, valueLen)
    						for i := 0; i < valueLen; i++ {
    							values[i] = reflectValue.Index(i).Interface()
    						}
    
    						conds = append(conds, clause.IN{Column: key, Values: values})
    					}
    				default:
    					conds = append(conds, clause.Eq{Column: key, Value: v[key]})
    				}
    			}
    		default:
    			reflectValue := reflect.Indirect(reflect.ValueOf(arg))
    			for reflectValue.Kind() == reflect.Ptr {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  9. callbacks/associations.go

    		tx = tx.Omit(omits...)
    	}
    
    	return db.AddError(tx.Create(values).Error)
    }
    
    // check association values has been saved
    // if values kind is Struct, check it has been saved
    // if values kind is Slice/Array, check all items have been saved
    var visitMapStoreKey = "gorm:saved_association_map"
    
    func checkAssociationsSaved(db *gorm.DB, values reflect.Value) bool {
    	if visit, ok := db.Get(visitMapStoreKey); ok {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  10. schema/field.go

    	fieldValue := reflect.New(field.IndirectFieldType)
    	// if field is valuer, used its value or first field as data type
    	valuer, isValuer := fieldValue.Interface().(driver.Valuer)
    	if isValuer {
    		if _, ok := fieldValue.Interface().(GormDataTypeInterface); !ok {
    			if v, err := valuer.Value(); reflect.ValueOf(v).IsValid() && err == nil {
    				fieldValue = reflect.ValueOf(v)
    			}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top