- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 118 for intValue (0.16 seconds)
-
src/test/java/org/codelibs/fess/score/LtrQueryRescorerTest.java
assertTrue(result instanceof QueryRescorerBuilder); QueryRescorerBuilder queryRescorerBuilder = (QueryRescorerBuilder) result; assertEquals(testWindowSize, queryRescorerBuilder.windowSize().intValue()); } @Test public void test_evaluate_withEmptyParams() { // Test with empty parameters map final String testModelName = "test_model"; final int testWindowSize = 50;
Created: 2026-03-31 13:07 - Last Modified: 2026-03-13 23:01 - 11.7K bytes - Click Count (0) -
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) {
Created: 2026-04-03 12:43 - Last Modified: 2025-12-11 20:45 - 9.6K bytes - Click Count (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()),
Created: 2026-04-03 12:43 - Last Modified: 2026-03-13 13:01 - 6.6K bytes - Click Count (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()); assertThat(function.apply("Null")).isNull(); new EqualsTester() .addEqualityGroup(function, Functions.forMap(map, 42))
Created: 2026-04-03 12:43 - Last Modified: 2026-03-16 15:59 - 16.2K bytes - Click Count (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());
Created: 2026-04-03 12:43 - Last Modified: 2026-01-08 18:10 - 19.6K bytes - Click Count (0) -
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()); assertThat(function.apply("Null")).isNull(); new EqualsTester() .addEqualityGroup(function, Functions.forMap(map, 42))
Created: 2026-04-03 12:43 - Last Modified: 2026-03-16 15:59 - 16.2K bytes - Click Count (0) -
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());
Created: 2026-04-03 12:43 - Last Modified: 2026-01-08 18:10 - 19.6K bytes - Click Count (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) {Created: 2026-04-03 12:43 - Last Modified: 2024-12-19 18:03 - 3.5K bytes - Click Count (0) -
src/main/java/jcifs/config/PropertyConfiguration.java
} value = props.getProperty("jcifs.smb.client.maxChannels"); if (value != null) { try { int intValue = Integer.parseInt(value); if (intValue > 0) { this.maxChannels = intValue; } } catch (NumberFormatException e) { // Invalid values ignored } }Created: 2026-04-05 00:10 - Last Modified: 2025-08-24 00:49 - 13.3K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
int j = i & ARRAY_MASK; tmp += BigIntegerMath.sqrt(positive[j], mode).intValue(); } return tmp; } @Benchmark int divide(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += BigIntegerMath.divide(nonzero1[j], nonzero2[j], mode).intValue(); } return tmp; } @Benchmark long roundToDouble(int reps) {Created: 2026-04-03 12:43 - Last Modified: 2024-12-19 18:03 - 2.9K bytes - Click Count (0)