- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 198 for snippet (0.07 sec)
-
guava-testlib/src/com/google/common/testing/EquivalenceTester.java
* contains objects that are supposed to be equal to each other. Objects of different groups are * expected to be unequal. For example: * * {@snippet : * EquivalenceTester.of(someStringEquivalence) * .addEquivalenceGroup("hello", "h" + "ello") * .addEquivalenceGroup("world", "wor" + "ld") * .test(); * } *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
* Maps#asMap(Set, Function)}. * * <p><b>Note:</b> on Java 8+, it is usually better to use streams. For example: * * {@snippet : * import static com.google.common.collect.ImmutableMap.toImmutableMap; * ... * ImmutableMap<Color, String> colorNames = * allColors.stream().collect(toImmutableMap(c -> c, c -> c.toString()));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 163.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
* Maps#asMap(Set, Function)}. * * <p><b>Note:</b> on Java 8+, it is usually better to use streams. For example: * * {@snippet : * import static com.google.common.collect.ImmutableMap.toImmutableMap; * ... * ImmutableMap<Color, String> colorNames = * allColors.stream().collect(toImmutableMap(c -> c, c -> c.toString()));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 157.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Verify.java
* except that they are always enabled. These methods should be used instead of Java assertions * whenever there is a chance the check may fail "in real life". Example: * * {@snippet : * Bill bill = remoteService.getLastUnpaidBill(); * * // In case bug 12345 happens again we'd rather just die * Verify.verify(bill.status() == Status.UNPAID, * "Unexpected bill status: %s", bill.status()); * }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 18.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multimaps.java
* mapping functions to the input elements, accumulated in the encounter order of the stream. * * <p>Example: * * {@snippet : * static final ListMultimap<Character, String> FIRST_LETTER_MULTIMAP = * Stream.of("banana", "apple", "carrot", "asparagus", "cherry") * .collect( * toMultimap(Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 86.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ValueGraphBuilder.java
* returns a <b>(live) unmodifiable view</b>; see <a * href="https://github.com/google/guava/wiki/GraphsExplained#accessor-behavior">the external * documentation</a> for details. * * <p>Examples of use: * * {@snippet : * // Building a mutable value graph * MutableValueGraph<String, Double> graph = * ValueGraphBuilder.undirected().allowsSelfLoops(true).build(); * graph.putEdgeValue("San Francisco", "San Francisco", 0.0);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/Queues.java
* through the returned queue. * * <p>It is imperative that the user manually synchronize on the returned queue when accessing the * queue's iterator: * * {@snippet : * Queue<E> queue = Queues.synchronizedQueue(MinMaxPriorityQueue.<E>create()); * ... * queue.add(element); // Needn't be in synchronized block * ...
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Nov 04 17:24:58 UTC 2025 - 18K bytes - Viewed (0) -
guava/src/com/google/common/graph/ValueGraph.java
* create an instance of one of the built-in implementations of {@code ValueGraph}, use the {@link * ValueGraphBuilder} class: * * {@snippet : * MutableValueGraph<Integer, Double> graph = ValueGraphBuilder.directed().build(); * } * * <p>{@link ValueGraphBuilder#build()} returns an instance of {@link MutableValueGraph}, which is aRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 16K bytes - Viewed (0) -
guava/src/com/google/common/graph/ImmutableGraph.java
BaseGraph<N> delegate() { return backingGraph; } /** * A builder for creating {@link ImmutableGraph} instances, especially {@code static final} * graphs. Example: * * {@snippet : * static final ImmutableGraph<Country> COUNTRY_ADJACENCY_GRAPH = * GraphBuilder.undirected() * .<Country>immutable() * .putEdge(FRANCE, GERMANY) * .putEdge(FRANCE, BELGIUM)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Joiner.java
* {@link Map}) with a separator. It either appends the results to an {@link Appendable} or returns * them as a {@link String}. Example: * * {@snippet : * Joiner joiner = Joiner.on("; ").skipNulls(); * . . . * return joiner.join("Harry", null, "Ron", "Hermione"); * } * * <p>This returns the string {@code "Harry; Ron; Hermione"}. Note that all input elements areRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 21K bytes - Viewed (0)