- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 337 for valueOf (0.06 sec)
-
utils/tests/utils.go
return } if reflect.Indirect(reflect.ValueOf(got)).IsValid() != reflect.Indirect(reflect.ValueOf(expect)).IsValid() { t.Errorf("%v: expect: %+v, got %+v", utils.FileWithLineNum(), expect, got) return } if valuer, ok := got.(driver.Valuer); ok { got, _ = valuer.Value() } if valuer, ok := expect.(driver.Valuer); ok { expect, _ = valuer.Value() } if got != nil {
Registered: 2024-11-03 09:35 - Last Modified: 2023-03-10 09:21 - 3.9K bytes - Viewed (0) -
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: 2024-11-01 12:43 - Last Modified: 2024-10-18 19:07 - 14.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheRefreshTest.java
assertEquals(Integer.valueOf(3), cache.getUnchecked(2)); expectedReloads++; assertEquals(expectedLoads, loader.getLoadCount()); assertEquals(expectedReloads, loader.getReloadCount()); ticker.advance(1, MILLISECONDS); assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); assertEquals(Integer.valueOf(-1), cache.getUnchecked(1)); assertEquals(Integer.valueOf(3), cache.getUnchecked(2));
Registered: 2024-11-01 12:43 - Last Modified: 2017-12-04 17:37 - 3.9K bytes - Viewed (0) -
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: 2024-11-01 12:43 - Last Modified: 2024-10-19 00:26 - 23.1K bytes - Viewed (0) -
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: 2024-11-01 12:43 - Last Modified: 2024-10-18 15:00 - 30.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java
throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToUpdateCrudTable(GLOBAL, String.valueOf(body.id))); return null; }).orElseGet(() -> { throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(body.id))); return null; }); charMappingService.store(body.dictId, entity); return asJson(
Registered: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:53 - 7.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/stemmeroverride/ApiAdminDictStemmeroverrideAction.java
throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToUpdateCrudTable(GLOBAL, String.valueOf(body.id))); return null; }).orElseGet(() -> { throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(body.id))); return null; }); stemmerOverrideService.store(body.dictId, entity);
Registered: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:53 - 7.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
} } public void testPutIfAbsent() { TestMap map = new TestMap(); map.put("foo", 1); assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2)); assertEquals(Integer.valueOf(1), map.get("foo")); assertNull(map.putIfAbsent("bar", 3)); assertEquals(Integer.valueOf(3), map.get("bar")); } public void testRemove() { TestMap map = new TestMap(); map.put("foo", 1);
Registered: 2024-11-01 12:43 - Last Modified: 2017-12-04 17:37 - 2.4K bytes - Viewed (0) -
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: 2024-11-01 12:43 - Last Modified: 2024-10-19 00:26 - 23.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/MemoryUtil.java
} else if (size.divide(ONE_TB_BI).compareTo(BigInteger.ZERO) > 0) { displaySize = new BigDecimal(size.divide(ONE_GB_BI)).divide(BigDecimal.valueOf(1000)) + "TB"; } else if (size.divide(ONE_GB_BI).compareTo(BigInteger.ZERO) > 0) { displaySize = new BigDecimal(size.divide(ONE_MB_BI)).divide(BigDecimal.valueOf(1000)) + "GB";
Registered: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:37 - 4.6K bytes - Viewed (0)