- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 409 for pre (0.03 sec)
-
guava/src/com/google/common/collect/Lists.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Futures.java
* * <p>Usage example: * * <pre>{@code * ListenableFuture<Integer> fetchCounterFuture = ...; * * // Falling back to a zero counter in case an exception happens when * // processing the RPC to fetch counters. * ListenableFuture<Integer> faultTolerantFuture = Futures.catching( * fetchCounterFuture, FetchException.class, x -> 0, directExecutor()); * }</pre> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 64.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* factory classes like: * * <pre> * interface Book {...} * public class Books { * public static Book hardcover(String title) {...} * public static Book paperback(String title) {...} * } * </pre> * * <p>And all the created {@code Book} instances can be tested with: * * <pre> * new ClassSanityTester() * .forAllPublicStaticMethods(Books.class)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 32.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* * <p>Suppose {@code x} is a queue known to contain only strings. The following code can be used * to dump the queue into a newly allocated array of {@code String}: * * <pre> * String[] y = x.toArray(new String[0]);</pre> * * <p>Note that {@code toArray(new Object[0])} is identical in function to {@code toArray()}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 07 21:36:32 UTC 2024 - 19K bytes - Viewed (0) -
guava/src/com/google/common/graph/ImmutableGraph.java
* graphs. Example: * * <pre>{@code * static final ImmutableGraph<Country> COUNTRY_ADJACENCY_GRAPH = * GraphBuilder.undirected() * .<Country>immutable() * .putEdge(FRANCE, GERMANY) * .putEdge(FRANCE, BELGIUM) * .putEdge(GERMANY, BELGIUM) * .addNode(ICELAND) * .build(); * }</pre> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 01 16:30:37 UTC 2022 - 7.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
* * <p><b>Note:</b> on Java 8+, it is usually better to use streams. For example: * * <pre>{@code * import static com.google.common.collect.ImmutableMap.toImmutableMap; * ... * ImmutableMap<Color, String> colorNames = * allColors.stream().collect(toImmutableMap(c -> c, c -> c.toString())); * }</pre> * * <p>Streams provide a more standard and flexible API and the lambdas make it clear what the keys
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 161.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
* * <p><b>Note:</b> on Java 8+, it is usually better to use streams. For example: * * <pre>{@code * import static com.google.common.collect.ImmutableMap.toImmutableMap; * ... * ImmutableMap<Color, String> colorNames = * allColors.stream().collect(toImmutableMap(c -> c, c -> c.toString())); * }</pre> * * <p>Streams provide a more standard and flexible API and the lambdas make it clear what the keys
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 167.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
* {@code ClosingFuture}. * * <p>Example usage: * * <pre>{@code * ClosingFuture<List<Row>> rowsFuture = * queryFuture.transform((closer, result) -> result.getRows(), executor); * }</pre> * * <p>When selecting an executor, note that {@code directExecutor} is dangerous in some cases. See
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 08 19:36:35 UTC 2024 - 98.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Aug 19 15:30:48 UTC 2024 - 10.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multimaps.java
* * <p>For example, * * <pre>{@code * List<String> badGuys = * Arrays.asList("Inky", "Blinky", "Pinky", "Pinky", "Clyde"); * Function<String, Integer> stringLengthFunction = ...; * Multimap<Integer, String> index = * Multimaps.index(badGuys, stringLengthFunction); * System.out.println(index); * }</pre> * * <p>prints * * <pre>{@code
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 86.3K bytes - Viewed (0)