- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 174 for naturally (0.07 seconds)
-
guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java
* the last one, then we achieve the intended rate. If a request comes and the last request was * granted only 100ms ago, then we wait for another 100ms. At this rate, serving 15 fresh permits * (i.e. for an acquire(15) request) naturally takes 3 seconds. * * It is important to realize that such a RateLimiter has a very superficial memory of the past: * it only remembers the last request. What if the RateLimiter was unused for a long period of
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 19.3K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
* * <p>Note that usually type mappings are already implied by the static type hierarchy (for example, * the {@code E} type variable declared by class {@code List} naturally maps to {@code String} in * the context of {@code class MyStringList implements List<String>}). In such case, prefer to use * {@link TypeToken#resolveType} since it's simpler and more type safe. This class should only be
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 22:30:05 GMT 2025 - 25.3K bytes - Click Count (0) -
guava/src/com/google/common/reflect/TypeResolver.java
* * <p>Note that usually type mappings are already implied by the static type hierarchy (for example, * the {@code E} type variable declared by class {@code List} naturally maps to {@code String} in * the context of {@code class MyStringList implements List<String>}). In such case, prefer to use * {@link TypeToken#resolveType} since it's simpler and more type safe. This class should only be
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 22:30:05 GMT 2025 - 25.3K bytes - Click Count (0) -
cmd/common-main.go
domainIPs.Add(addr) } } domainIPs.Add(endpoint) } updateDomainIPs(domainIPs) } else { // Add found interfaces IP address to global domain IPS, // loopback addresses will be naturally dropped. domainIPs := mustGetLocalIP4() for _, host := range globalEndpoints.Hostnames() { domainIPs.Add(host) } updateDomainIPs(domainIPs) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.5K bytes - Click Count (3) -
android/guava/src/com/google/common/base/Converter.java
* requirement that existing callers already fulfill). * * Disclaimer: Part of the reason that callers are so well adapted to `Function<A, B>` may be that * that is how the signature looked even prior to this comment! So naturally any change can break * existing users, but it can't *fix* existing users because any users who needed * `Function<@Nullable A, @Nullable B>` already had to find a workaround. Still, there is a *ton* of
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 18 21:43:06 GMT 2025 - 22.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Iterables.java
} /** * Returns the first element in {@code iterable} that satisfies the given predicate, or {@code * defaultValue} if none found. Note that this can usually be handled more naturally using {@code * tryFind(iterable, predicate).or(defaultValue)}. * * <p><b>{@code Stream} equivalent:</b> {@code * stream.filter(predicate).findFirst().orElse(defaultValue)} * * @since 7.0Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 16 18:35:28 GMT 2025 - 43.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
*/ private static final Comparator<?> NATURAL_ORDER = Ordering.natural(); private static final ImmutableSortedMap<Comparable<?>, Object> NATURAL_EMPTY_MAP = new ImmutableSortedMap<>(ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.of()); static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) { if (Ordering.natural().equals(comparator)) { return of(); } else {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 52.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
} /** * Returns the first element in {@code iterable} that satisfies the given predicate, or {@code * defaultValue} if none found. Note that this can usually be handled more naturally using {@code * tryFind(iterable, predicate).or(defaultValue)}. * * <p><b>{@code Stream} equivalent:</b> {@code * stream.filter(predicate).findFirst().orElse(defaultValue)} * * @since 7.0Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 43.6K bytes - Click Count (0) -
src/bytes/bytes.go
func Map(mapping func(r rune) rune, s []byte) []byte { // In the worst case, the slice can grow when mapped, making // things unpleasant. But it's so rare we barge in assuming it's // fine. It could also shrink but that falls out naturally. b := make([]byte, 0, len(s)) for i := 0; i < len(s); { r, wid := utf8.DecodeRune(s[i:]) r = mapping(r) if r >= 0 { b = utf8.AppendRune(b, r) } i += wid } return b }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Sep 16 16:42:15 GMT 2025 - 35.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterators.java
* element is found, {@code defaultValue} will be returned from this method and the iterator will * be left exhausted: its {@code hasNext()} method will return {@code false}. Note that this can * usually be handled more naturally using {@code tryFind(iterator, predicate).or(defaultValue)}. * * @since 7.0 */ // For discussion of this signature, see the corresponding overload of *Iterables*.find.Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 16 12:42:11 GMT 2025 - 51.4K bytes - Click Count (0)