- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 160 for snippets (0.03 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-testlib/src/com/google/common/collect/testing/IteratorTester.java
* * <p>For example, to test {@link java.util.Collections#unmodifiableList(java.util.List) * Collections.unmodifiableList}'s iterator: * * {@snippet : * List<String> expectedElements = * Arrays.asList("a", "b", "c", "d", "e"); * List<String> actualElements = * Collections.unmodifiableList( * Arrays.asList("a", "b", "c", "d", "e"));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 20:54:16 UTC 2025 - 4.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) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
* annotated by {@link TestSubtype}. * * <p>These declaration methods rely on Java static type checking to make sure what we want to * assert as subtypes are really subtypes according to javac. For example: * * {@snippet : * class MySubtypeTests extends SubtypeTester { * @TestSubtype(suppressGetSubtype = true, suppressGetSupertype = true) * public <T> Iterable<? extends T> listIsSubtypeOfIterable(List<T> list) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Nov 25 23:29:58 UTC 2025 - 6.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multiset.java
* <p>Returns {@code true} if the given object is also a multiset entry and the two entries * represent the same element and count. That is, two entries {@code a} and {@code b} are equal * if: * * {@snippet : * Objects.equals(a.getElement(), b.getElement()) * && a.getCount() == b.getCount() * } */ @Override // TODO(kevinb): check this wrt TreeMultiset?Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 20.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/FluentIterable.java
* as a {@code List}: * * {@snippet : * ImmutableList<String> results = * FluentIterable.from(database.getClientList()) * .filter(Client::isActiveInLastMonth) * .transform(Object::toString) * .limit(10) * .toList(); * } * * The approximate stream equivalent is: * * {@snippet : * List<String> results = * database.getClientList()Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 34.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* fallback}, an exception is thrown, this exception is used as the result of the output {@code * Future}. * * <p>Usage example: * * {@snippet : * ListenableFuture<Integer> fetchCounterFuture = ...; * * // Falling back to a zero counter in case an exception happens when * // processing the RPC to fetch counters.Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 64.3K bytes - Viewed (0) -
guava/src/com/google/common/io/BaseEncoding.java
* href="http://tools.ietf.org/html/rfc4648">RFC 4648</a>. For example, the expression: * * {@snippet : * BaseEncoding.base32().encode("foo".getBytes(US_ASCII)) * } * * <p>returns the string {@code "MZXW6==="}, and * * {@snippet : * byte[] decoded = BaseEncoding.base32().decode("MZXW6==="); * } * * <p>...returns the ASCII bytes of the string {@code "foo"}. *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Oct 06 14:51:47 UTC 2025 - 41.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
* * {@snippet : * NavigableSet<E> set = synchronizedNavigableSet(new TreeSet<E>()); * ... * synchronized (set) { * // Must be in the synchronized block * Iterator<E> it = set.iterator(); * while (it.hasNext()) { * foo(it.next()); * } * } * } * * <p>or: * * {@snippet :Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 81.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Lists.java
* lists in order; the "n-ary <a href="http://en.wikipedia.org/wiki/Cartesian_product">Cartesian * product</a>" of the lists. For example: * * {@snippet : * Lists.cartesianProduct(ImmutableList.of( * ImmutableList.of(1, 2), * ImmutableList.of("A", "B", "C"))) * } * * <p>returns a list containing six lists in the following order: *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 42.6K bytes - Viewed (0)