- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 305 for maxValue (0.53 sec)
-
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
IllegalArgumentException expected = assertThrows( IllegalArgumentException.class, () -> builder.addAll(nCopies(Integer.MAX_VALUE - 50, "a"))); assertThat(expected) .hasMessageThat() .contains("cannot store more than Integer.MAX_VALUE elements"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
static final int DEFAULT_INITIAL_CAPACITY = 4; static int expandedCapacity(int oldCapacity, int minCapacity) { if (minCapacity < 0) { throw new IllegalArgumentException("cannot store more than Integer.MAX_VALUE elements"); } else if (minCapacity <= oldCapacity) { return oldCapacity; } // careful of overflow! int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0) -
guava/src/com/google/common/base/Joiner.java
} // cloned from ImmutableCollection private static int expandedCapacity(int oldCapacity, int minCapacity) { if (minCapacity < 0) { throw new IllegalArgumentException("cannot store more than Integer.MAX_VALUE elements"); } else if (minCapacity <= oldCapacity) { return oldCapacity; } // careful of overflow! int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; if (newCapacity < minCapacity) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 21K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
// whatever warnings might come along with it. :( /** * Returns an immutable list containing the given elements, in order. * * <p>The array {@code others} must not be longer than {@code Integer.MAX_VALUE - 12}. * * @throws NullPointerException if any element is null * @since 3.0 (source-compatible since 2.0) */ @SafeVarargs // For Eclipse. For internal javac we have disabled this pointless type of warning.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.5K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedInts.java
checkPositionIndexes(fromIndex, toIndex, array.length); for (int i = fromIndex; i < toIndex; i++) { array[i] ^= Integer.MAX_VALUE; } Arrays.sort(array, fromIndex, toIndex); for (int i = fromIndex; i < toIndex; i++) { array[i] ^= Integer.MAX_VALUE; } } /** * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit * quantities.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Feb 09 16:22:33 UTC 2025 - 13.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java
return list.get(index); } private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) { ChannelInfo leastLoadedChannel = null; long minPending = Long.MAX_VALUE; for (ChannelInfo channel : channels) { long pending = channel.getRequestsPending(); if (pending < minPending) { minPending = pending;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
val certificatePinner: CertificatePinner? = address.certificatePinner() } @Test @Disabled fun cache() { val cache = Cache(File("/cache/"), Integer.MAX_VALUE.toLong()) val directory: File = cache.directory() } @Test @Disabled fun cacheControl() { val cacheControl: CacheControl = CacheControl.Builder().build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 13.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
this.server.serverTime = SMBUtil.readTime(buffer, bufferIndex); bufferIndex += 8; int tzOffset = SMBUtil.readInt2(buffer, bufferIndex); // tzOffset is signed! if (tzOffset > Short.MAX_VALUE) { tzOffset = -1 * (65536 - tzOffset); } this.server.serverTimeZone = tzOffset; bufferIndex += 2; this.server.encryptionKeyLength = buffer[bufferIndex++] & 0xFF;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
assertEquals(expectedLength, actualLength); } @DisplayName("Test readParametersWireFormat with various lengths") @ParameterizedTest @ValueSource(ints = { 0, 1, 100, 1000, 65535, Integer.MAX_VALUE }) void testReadParametersWireFormatWithVariousLengths(int expectedLength) throws Exception { byte[] buffer = new byte[100]; SMBUtil.writeInt4(expectedLength, buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
IllegalArgumentException expected = assertThrows( IllegalArgumentException.class, () -> builder.addAll(nCopies(Integer.MAX_VALUE - 50, "a"))); assertThat(expected) .hasMessageThat() .contains("cannot store more than Integer.MAX_VALUE elements"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 23.6K bytes - Viewed (0)