- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 417 for has_value (0.3 seconds)
-
android/guava/src/com/google/common/math/IntMath.java
* {@code Integer.MAX_VALUE} or {@code Integer.MIN_VALUE} is returned, respectively. * * @since 20.0 */ public static int saturatedAdd(int a, int b) { return Ints.saturatedCast((long) a + b); } /** * Returns the difference of {@code a} and {@code b} unless it would overflow or underflow inCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 26.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/IntMathTest.java
int n = rand.nextInt(Integer.MAX_VALUE); assertEquals(LongMath.isPrime(n), IntMath.isPrime(n)); } } public void testSaturatedAbs() { assertEquals(Integer.MAX_VALUE, IntMath.saturatedAbs(Integer.MIN_VALUE)); assertEquals(Integer.MAX_VALUE, IntMath.saturatedAbs(Integer.MAX_VALUE)); assertEquals(Integer.MAX_VALUE, IntMath.saturatedAbs(-Integer.MAX_VALUE)); assertEquals(0, IntMath.saturatedAbs(0));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 24.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTesting.java
static final int[] LARGE_INTEGER_VALUES = {Integer.MAX_VALUE, Integer.MAX_VALUE / 2}; static final double LARGE_INTEGER_VALUES_MEAN = BigInteger.valueOf(Integer.MAX_VALUE) .multiply(BigInteger.valueOf(3L)) .divide(BigInteger.valueOf(4L)) .doubleValue(); static final double LARGE_INTEGER_VALUES_POPULATION_VARIANCE = BigInteger.valueOf(Integer.MAX_VALUE)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 24K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/DiscreteDomainTest.java
assertThrows( IllegalArgumentException.class, () -> DiscreteDomain.integers().offset(Integer.MAX_VALUE, 1)); } public void testLongsOffset() { assertEquals(1, DiscreteDomain.longs().offset(0L, 1).longValue()); assertEquals(Long.MAX_VALUE, DiscreteDomain.longs().offset(0L, Long.MAX_VALUE).longValue()); } public void testLongsOffsetExceptions() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
BigDecimal maxDoubleAsBigDecimal = new BigDecimal(Double.MAX_VALUE); new RoundToDoubleTester(maxDoubleAsBigDecimal) .setExpectation(Double.MAX_VALUE, RoundingMode.values()) .test(); } public void testRoundToDouble_maxDoublePlusOne() { BigDecimal maxDoubleAsBigDecimal = new BigDecimal(Double.MAX_VALUE).add(BigDecimal.ONE); new RoundToDoubleTester(maxDoubleAsBigDecimal)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 11K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java
assertThrows(IllegalArgumentException.class, () -> MathPreconditions.checkPositive("int", 0)); } public void testCheckPositive_maxInt() { MathPreconditions.checkPositive("int", Integer.MAX_VALUE); } public void testCheckPositive_minInt() { assertThrows( IllegalArgumentException.class, () -> MathPreconditions.checkPositive("int", Integer.MIN_VALUE)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
*/ @Nested @DisplayName("Wire format method behaviour") class WireFormatMethods { @ParameterizedTest @ValueSource(ints = { 0, 1, -1, Integer.MAX_VALUE, Integer.MIN_VALUE }) @DisplayName("writeSetupWireFormat returns 0 for all indices") void writeSetupWireFormatReturnsZero(int index) { TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
when(negotiationResponse.getSendBufferSize()).thenReturn(Integer.MAX_VALUE); when(negotiationResponse.getReceiveBufferSize()).thenReturn(Integer.MAX_VALUE); when(negotiationResponse.getTransactionBufferSize()).thenReturn(Integer.MAX_VALUE); assertEquals(Integer.MAX_VALUE, negotiationResponse.getSendBufferSize()); assertEquals(Integer.MAX_VALUE, negotiationResponse.getReceiveBufferSize());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
} } } public void testSaturatedAbs() { assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(Long.MIN_VALUE)); assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(Long.MAX_VALUE)); assertEquals(Long.MAX_VALUE, LongMath.saturatedAbs(-Long.MAX_VALUE)); assertEquals(0, LongMath.saturatedAbs(0)); assertEquals(1, LongMath.saturatedAbs(1));Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 31.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
request.setPadding((byte) 0xFF); request.setReadFlags((byte) 0xFF); request.setReadLength(Integer.MAX_VALUE); request.setOffset(Long.MAX_VALUE); request.setMinimumCount(Integer.MAX_VALUE); request.setRemainingBytes(Integer.MAX_VALUE); byte[] buffer = new byte[256]; int bytesWritten = request.writeBytesWireFormat(buffer, 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.8K bytes - Click Count (0)