- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 83 for Clarke (0.15 sec)
-
android/guava/src/com/google/common/io/ByteStreams.java
* userspace buffer (byte[] or ByteBuffer), then copies them from that buffer into the * destination channel. * </ol> * * This value is intended to be large enough to make the overhead of system calls negligible, * without being so large that it causes problems for systems with atypical memory management if * approaches 2 or 3 are used. */ private static final int ZERO_COPY_CHUNK_SIZE = 512 * 1024;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jan 17 18:59:58 GMT 2024 - 29.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/StreamsTest.java
} public void testFindLast_refStream() { assertThat(findLast(Stream.of())).isEmpty(); assertThat(findLast(Stream.of("a", "b", "c", "d"))).hasValue("d"); // test with a large, not-subsized Spliterator List<Integer> list = IntStream.rangeClosed(0, 10000).boxed().collect(Collectors.toCollection(LinkedList::new)); assertThat(findLast(list.stream())).hasValue(10000);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 20K bytes - Viewed (0) -
android/guava/src/com/google/common/base/NullnessCasts.java
* typically useful for {@code return} statements. That leaves the code with two options: Either * add the suppression to the whole method (which turns off checking for a large section of code), * or extract a variable, and put the suppression on that. However, a local variable typically * doesn't work: Because nullness analyses typically infer the nullness of local variables,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Aug 17 15:44:29 GMT 2021 - 3.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/CartesianList.java
axesSizeProduct[i] = IntMath.checkedMultiply(axesSizeProduct[i + 1], axes.get(i).size()); } } 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) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 4.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java
assertEquals(c, navigableSet.higher(a)); assertEquals(c, navigableSet.higher(b)); assertEquals(null, navigableSet.higher(c)); } /* * TODO(cpovirk): make "too small" and "too large" elements available for better navigation * testing. At that point, we may be able to eliminate the "hole" tests, which would mean that * ContiguousSet's tests would no longer need to suppress them. */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 8.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RangeMap.java
* * <p><b>Note:</b> coalescing requires calling {@code .equals()} on any connected values, which * may be expensive depending on the value type. Using this method on range maps with large values * such as {@link Collection} types is discouraged. * * @since 22.0 */ void putCoalescing(Range<K> range, V value);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
private enum Timeout { MIN(Long.MIN_VALUE, "-oo"), MINUS_SMALL(-SMALL_TIMEOUT_MILLIS, "-" + SMALL_TIMEOUT_MILLIS + "ms"), ZERO(0L, "0ms"), SMALL(SMALL_TIMEOUT_MILLIS, SMALL_TIMEOUT_MILLIS + "ms"), LARGE(UNEXPECTED_HANG_DELAY_MILLIS * 2, (2 * UNEXPECTED_HANG_DELAY_MILLIS) + "ms"), MAX(Long.MAX_VALUE, "+oo"); final long millis; final String label; Timeout(long millis, String label) {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 14:48:57 GMT 2023 - 27.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertEquals(1, map.segments[1].table.length()); assertEquals(1, map.segments[2].table.length()); assertEquals(1, map.segments[3].table.length()); } public void testInitialCapacity_large() { CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE); // that the builder didn't blow up is enough; // don't actually create this monster! } public void testConcurrencyLevel_zero() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 20:10:02 GMT 2023 - 25.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ContiguousSet.java
* particular example can be written as just: * * <pre>{@code * ContiguousSet.closed(5, 42) * }</pre> * * <p><b>Warning:</b> Be extremely careful what you do with conceptually large instances (such as * {@code ContiguousSet.create(Range.greaterThan(0), DiscreteDomain.integers()}). Certain operations * on such a set can be performed efficiently, but others (such as {@link Set#hashCode} or {@link
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 9.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DiscreteDomain.java
* <p>Note that this function is necessarily well-defined for any discrete type. * * @return the distance as described above, or {@link Long#MIN_VALUE} or {@link Long#MAX_VALUE} if * the distance is too small or too large, respectively. */ public abstract long distance(C start, C end); /** * Returns the minimum value of type {@code C}, if it has one. The minimum value is the unique
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 10.3K bytes - Viewed (0)