Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 203 for valueOf (0.07 sec)

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. 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 Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Feb 13 06:16:26 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. 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 Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 32K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/entity/SearchLogEventTest.java

            // Test minimum value
            event.setVersionNo(Long.MIN_VALUE);
            assertEquals(Long.valueOf(Long.MIN_VALUE), event.getVersionNo());
    
            // Test zero
            event.setVersionNo(0L);
            assertEquals(Long.valueOf(0L), event.getVersionNo());
    
            // Test maximum value
            event.setVersionNo(Long.MAX_VALUE);
            assertEquals(Long.valueOf(Long.MAX_VALUE), event.getVersionNo());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      public void testRoundToDouble_smallNegative() {
        new RoundToDoubleTester(BigInteger.valueOf(-16)).setExpectation(-16.0, values()).test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_minPreciselyRepresentable() {
        new RoundToDoubleTester(BigInteger.valueOf(-1L << 53))
            .setExpectation(-Math.pow(2, 53), values())
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  6. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            List<Integer> executionOrder = PriorityTrackingBooster.getExecutionOrder();
            assertEquals(3, executionOrder.size());
            assertEquals(Integer.valueOf(3), executionOrder.get(0));
            assertEquals(Integer.valueOf(2), executionOrder.get(1));
            assertEquals(Integer.valueOf(1), executionOrder.get(2));
        }
    
        // Test addScoreBooster with same priorities
        public void test_addScoreBooster_samePriority() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  9. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessTimeResourceProviderTest.java

                    return value;
                }
            };
    
            FessTimeResourceProvider boundaryProvider = new FessTimeResourceProvider(boundaryConfig);
            assertNotNull(boundaryProvider);
            assertEquals(Long.valueOf(value), boundaryConfig.getTimeAdjustTimeMillisAsLong());
        }
    
        // Test config methods return consistent values
        public void test_configConsistency() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.4K bytes
    - Viewed (0)
Back to top