- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 90 for IntValue (0.05 sec)
-
android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
} public void testIntValue() { for (int a : TEST_INTS) { UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a); int intValue = aUnsigned.bigIntegerValue().intValue(); assertThat(aUnsigned.intValue()).isEqualTo(intValue); } } @GwtIncompatible @J2ktIncompatible public void testSerialization() { for (int a : TEST_INTS) {
Registered: 2025-05-30 12:43 - Last Modified: 2025-04-15 17:18 - 9.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
+ "weakKeys,weakValues,expireAfterAccess=10m,expireAfterWrite=1h"); assertEquals(10, spec.initialCapacity.intValue()); assertEquals(20, spec.maximumSize.intValue()); assertNull(spec.maximumWeight); assertEquals(30, spec.concurrencyLevel.intValue()); assertEquals(Strength.WEAK, spec.keyStrength); assertEquals(Strength.WEAK, spec.valueStrength);
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-19 18:03 - 19.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/EquivalenceTest.java
EquivalenceTester.of(Equivalence.equals().onResultOf(Functions.toStringFunction())) .addEquivalenceGroup(new IntValue(1), new IntValue(1)) .addEquivalenceGroup(new IntValue(2)) .test(); } public void testOnResultOf_equals() { new EqualsTester() .addEqualityGroup( Equivalence.identity().onResultOf(Functions.toStringFunction()),
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-22 03:38 - 6.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
map.put("Null", null); Function<String, @Nullable Integer> function = Functions.forMap(map, 42); assertEquals(1, function.apply("One").intValue()); assertEquals(42, function.apply("Two").intValue()); assertEquals(3, function.apply("Three").intValue()); assertNull(function.apply("Null")); new EqualsTester() .addEqualityGroup(function, Functions.forMap(map, 42))
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 17:27 - 15.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java
int j = i & ARRAY_MASK; tmp += oldSlowFactorial(slowFactorials[j]).intValue(); } return tmp; } @Benchmark int factorial(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += BigIntegerMath.factorial(factorials[j]).intValue(); } return tmp; } @Benchmark int binomial(int reps) {
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-19 18:03 - 3.5K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt
import okhttp3.internal.http2.Http2 import okhttp3.internal.platform.android.AndroidLog.androidLog private val LogRecord.androidLevel: Int get() = when { level.intValue() > Level.INFO.intValue() -> Log.WARN level.intValue() == Level.INFO.intValue() -> Log.INFO else -> Log.DEBUG } object AndroidLogHandler : Handler() { override fun publish(record: LogRecord) {
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/IntMathTest.java
for (int x : POSITIVE_INTEGER_CANDIDATES) { BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x)); if (fitsInInt(expectedResult)) { assertEquals(expectedResult.intValue(), IntMath.ceilingPowerOfTwo(x)); } else { assertThrows(ArithmeticException.class, () -> IntMath.ceilingPowerOfTwo(x)); } } } public void testFloorPowerOfTwo() {
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-14 00:16 - 24.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java
assertEquals(1, ContiguousSet.create(Range.open(0, 4), integers()).first().intValue()); assertEquals( Integer.MIN_VALUE, ContiguousSet.create(Range.<Integer>all(), integers()).first().intValue()); } public void testLast() { assertEquals(3, ContiguousSet.create(Range.closed(1, 3), integers()).last().intValue());
Registered: 2025-05-30 12:43 - Last Modified: 2025-02-10 18:30 - 19.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
for (int x : POSITIVE_INTEGER_CANDIDATES) { BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x)); if (fitsInInt(expectedResult)) { assertEquals(expectedResult.intValue(), IntMath.ceilingPowerOfTwo(x)); } else { assertThrows(ArithmeticException.class, () -> IntMath.ceilingPowerOfTwo(x)); } } } public void testFloorPowerOfTwo() {
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-14 00:16 - 24.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/SearchForm.java
if (num == null) { num = fessConfig.getPagingSearchPageSizeAsInteger(); } else { try { if (num.intValue() > fessConfig.getPagingSearchPageMaxSizeAsInteger().intValue() || num.intValue() <= 0) { num = fessConfig.getPagingSearchPageMaxSizeAsInteger(); } } catch (final NumberFormatException e) {
Registered: 2025-05-26 08:04 - Last Modified: 2025-03-15 06:53 - 4.5K bytes - Viewed (0)