- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 257 for maxValue (0.09 sec)
-
guava-tests/test/com/google/common/collect/ListsTest.java
assertEquals(13, computeArrayListCapacity(8)); assertEquals(89, computeArrayListCapacity(77)); assertEquals(22000005, computeArrayListCapacity(20000000)); assertEquals(Integer.MAX_VALUE, computeArrayListCapacity(Integer.MAX_VALUE - 1000)); } public void testNewArrayListFromCollection() { ArrayList<Integer> list = Lists.newArrayList(SOME_COLLECTION); assertEquals(SOME_COLLECTION, list); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Ints.java
* @return the same value cast to {@code int} if it is in the range of the {@code int} type, * {@link Integer#MAX_VALUE} if it is too large, or {@link Integer#MIN_VALUE} if it is too * small */ public static int saturatedCast(long value) { if (value > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } if (value < Integer.MIN_VALUE) { return Integer.MIN_VALUE; } return (int) value;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 31K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt
val pool = factory.newConnectionPool(routePlanner = this) val events = LinkedBlockingDeque<String>() var canceled = false var autoGeneratePlans = false var defaultConnectionIdleAtNanos = Long.MAX_VALUE private var nextPlanId = 0 private var nextPlanIndex = 0 val plans = mutableListOf<FakePlan>() override val deferredPlans = ArrayDeque<RoutePlanner.Plan>()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 24 04:40:49 UTC 2024 - 6.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/LineBufferTest.java
bufferHelper("mixed\nline\rendings\r\n", "mixed\n", "line\r", "endings\r\n"); } private static final int[] CHUNK_SIZES = {1, 2, 3, Integer.MAX_VALUE}; private static void bufferHelper(String input, String... expect) throws IOException { List<String> expectProcess = Arrays.asList(expect); List<String> expectRead = Lists.transform(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LineBufferTest.java
bufferHelper("mixed\nline\rendings\r\n", "mixed\n", "line\r", "endings\r\n"); } private static final int[] CHUNK_SIZES = {1, 2, 3, Integer.MAX_VALUE}; private static void bufferHelper(String input, String... expect) throws IOException { List<String> expectProcess = Arrays.asList(expect); List<String> expectRead = Lists.transform(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Collections2.java
// We move to the next non-repeated element. permutations = IntMath.saturatedMultiply(permutations, IntMath.binomial(n, r)); r = 0; if (permutations == Integer.MAX_VALUE) { return Integer.MAX_VALUE; } } n++; r++; } return IntMath.saturatedMultiply(permutations, IntMath.binomial(n, r)); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 22.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt
this.server = server platform.assumeNotOpenJSSE() server.protocolNegotiationEnabled = false val loggingFileSystem = LoggingFilesystem(fileSystem) cache = buildCache("/cache/".toPath(), Int.MAX_VALUE.toLong(), loggingFileSystem) client = clientTestRule.newClientBuilder() .cache(cache) .cookieJar(JavaNetCookieJar(cookieManager)) .build() } @AfterEach
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 6K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Chars.java
* @return the same value cast to {@code char} if it is in the range of the {@code char} type, * {@link Character#MAX_VALUE} if it is too large, or {@link Character#MIN_VALUE} if it is too * small */ public static char saturatedCast(long value) { if (value > Character.MAX_VALUE) { return Character.MAX_VALUE; } if (value < Character.MIN_VALUE) { return Character.MIN_VALUE; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 23.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt
} fun getMaxConcurrentStreams(): Int { val bit = 1 shl MAX_CONCURRENT_STREAMS return if (bit and set != 0) values[MAX_CONCURRENT_STREAMS] else Int.MAX_VALUE } fun getMaxFrameSize(defaultValue: Int): Int { val bit = 1 shl MAX_FRAME_SIZE return if (bit and set != 0) values[MAX_FRAME_SIZE] else defaultValue }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/CartesianList.java
} } catch (ArithmeticException e) { throw new IllegalArgumentException( "Cartesian product too large; must have size at most Integer.MAX_VALUE"); } this.axesSizeProduct = axesSizeProduct; } private int getAxisIndexForProductIndex(int index, int axis) { return (index / axesSizeProduct[axis + 1]) % axes.get(axis).size(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.8K bytes - Viewed (0)