Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 400 for valueOf (0.24 sec)

  1. guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      private static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);
      private static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);
    
      private static long saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_LONG) > 0) {
          return Long.MAX_VALUE;
        }
        if (big.compareTo(MIN_LONG) < 0) {
          return Long.MIN_VALUE;
        }
        return big.longValue();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/IntMathTest.java

      }
    
      private static final BigInteger MAX_INT = BigInteger.valueOf(Integer.MAX_VALUE);
      private static final BigInteger MIN_INT = BigInteger.valueOf(Integer.MIN_VALUE);
    
      private static int saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_INT) > 0) {
          return Integer.MAX_VALUE;
        }
        if (big.compareTo(MIN_INT) < 0) {
          return Integer.MIN_VALUE;
        }
        return big.intValue();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          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)
                  : BigInteger.valueOf(value).add(BigInteger.ZERO.setBit(64));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          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)
                  : BigInteger.valueOf(value).add(BigInteger.ZERO.setBit(64));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      private static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);
      private static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);
    
      private static long saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_LONG) > 0) {
          return Long.MAX_VALUE;
        }
        if (big.compareTo(MIN_LONG) < 0) {
          return Long.MIN_VALUE;
        }
        return big.longValue();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K 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:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/IntMathTest.java

      }
    
      private static final BigInteger MAX_INT = BigInteger.valueOf(Integer.MAX_VALUE);
      private static final BigInteger MIN_INT = BigInteger.valueOf(Integer.MIN_VALUE);
    
      private static int saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_INT) > 0) {
          return Integer.MAX_VALUE;
        }
        if (big.compareTo(MIN_INT) < 0) {
          return Integer.MIN_VALUE;
        }
        return big.intValue();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/BigIntegerMath.java

       * will return {@code Double.MAX_VALUE}, not {@code Double.POSITIVE_INFINITY}.
       *
       * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
       * default rounding mode: if the two nearest representable values are equally near, the one with
       * the least significant bit zero is chosen. (In such cases, both of the nearest representable
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  9. 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)
    			}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  10. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        new RoundToDoubleTester(BigInteger.valueOf((1L << 54) + 4))
            .setExpectation(Math.pow(2, 54) + 4, values())
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_maxDouble() {
        BigInteger maxDoubleAsBI = DoubleMath.roundToBigInteger(Double.MAX_VALUE, UNNECESSARY);
        new RoundToDoubleTester(maxDoubleAsBI).setExpectation(Double.MAX_VALUE, values()).test();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
Back to top