- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 198 for snippet (0.03 sec)
-
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* given at creation time, the natural order of elements is used. If no maximum size is given at * creation time, the queue is unbounded. * * <p>Usage example: * * {@snippet : * MinMaxPriorityQueue<User> users = MinMaxPriorityQueue.orderedBy(userComparator) * .maximumSize(1000) * .create(); * } *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 33.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
return new Builder<>(expectedKeys); } /** * A builder for creating immutable multimap instances, especially {@code public static final} * multimaps ("constant multimaps"). Example: * * {@snippet : * static final Multimap<String, Integer> STRING_TO_INTEGER_MULTIMAP = * new ImmutableMultimap.Builder<String, Integer>() * .put("one", 1) * .putAll("several", 1, 2, 3)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 27.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractScheduledService.java
* the life cycle methods. * * <h3>Usage Example</h3> * * <p>Here is a sketch of a service which crawls a website and uses the scheduling capabilities to * rate limit itself. * * {@snippet : * class CrawlingService extends AbstractScheduledService { * private Set<Uri> visited; * private Queue<Uri> toCrawl; * protected void startUp() throws Exception { * toCrawl = readStartingUris(); * }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
} /** * A builder for creating immutable multiset instances, especially {@code public static final} * multisets ("constant multisets"). Example: * * {@snippet : * public static final ImmutableSortedMultiset<Bean> BEANS = * new ImmutableSortedMultiset.Builder<Bean>(colorComparator()) * .addCopies(Bean.COCOA, 4) * .addCopies(Bean.GARDEN, 6)Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 21:07:18 UTC 2025 - 29.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* This does perform a little more work than necessary, so another option is to insert an * unchecked cast at some later point: * * {@snippet : * @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result = * (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList()); * } */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 18:35:28 UTC 2025 - 43.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
checkNonnegative(expectedSize, "expectedSize"); return new Builder<>(expectedSize); } /** * A builder for creating {@code ImmutableSet} instances. Example: * * {@snippet : * static final ImmutableSet<Color> GOOGLE_COLORS = * ImmutableSet.<Color>builder() * .addAll(WEBSAFE_COLORS) * .add(new Color(0, 191, 255)) * .build(); * } *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Nov 07 16:09:47 UTC 2025 - 35.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java
* the life cycle methods. * * <h3>Usage Example</h3> * * <p>Here is a sketch of a service which crawls a website and uses the scheduling capabilities to * rate limit itself. * * {@snippet : * class CrawlingService extends AbstractScheduledService { * private Set<Uri> visited; * private Queue<Uri> toCrawl; * protected void startUp() throws Exception { * toCrawl = readStartingUris(); * }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableBiMap.java
return new Builder<>(expectedSize); } /** * A builder for creating immutable bimap instances, especially {@code public static final} bimaps * ("constant bimaps"). Example: * * {@snippet : * static final ImmutableBiMap<String, Integer> WORD_TO_INT = * new ImmutableBiMap.Builder<String, Integer>() * .put("one", 1) * .put("two", 2) * .put("three", 3)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 22.7K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* cache instances created by {@code CacheBuilder} will not perform any type of eviction. * * <p>Usage example: * * {@snippet : * LoadingCache<Key, Graph> graphs = CacheBuilder.newBuilder() * .maximumSize(10000) * .expireAfterWrite(Duration.ofMinutes(10)) * .removalListener(MY_LISTENER) * .build(Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* This does perform a little more work than necessary, so another option is to insert an * unchecked cast at some later point: * * {@snippet : * @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result = * (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList()); * } */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 43.6K bytes - Viewed (0)