Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 76 for approach (0.08 seconds)

  1. guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * completely unused, and an expensive acquire(100) request comes. It would be nonsensical to just
       * wait for 100 seconds, and /then/ start the actual task. Why wait without doing anything? A much
       * better approach is to /allow/ the request right away (as if it was an acquire(1) request
       * instead), and postpone /subsequent/ requests as needed. In this version, we allow starting the
    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)
  2. guava/src/com/google/common/base/MoreObjects.java

       * Predicates.notNull())}, static importing as necessary.
       *
       * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be
       * accomplished with {@link Optional#or(Object) first.or(second)}. That approach also allows for
       * lazy evaluation of the fallback instance, using {@link Optional#or(Supplier)
       * first.or(supplier)}.
       *
       * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  3. guava/src/com/google/common/hash/Crc32cHashFunction.java

      }
    
      static final class Crc32cHasher extends AbstractStreamingHasher {
    
        /*
         * The striding algorithm works roughly as follows: it is universally the case that
         * CRC(x ^ y) == CRC(x) ^ CRC(y).  The approach we take is to break the message as follows,
         * with each letter representing a 4-byte word: ABCDABCDABCDABCD... and to calculate
         * CRC(A000A000A000...), CRC(0B000B000B...), CRC(00C000C000C...), CRC(000D000D000D...)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 21.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/base/Verify.java

     *     "Unexpected bill status: %s", bill.status());
     * }
     *
     * <h3>Comparison to alternatives</h3>
     *
     * <p><b>Note:</b> In some cases the differences explained below can be subtle. When it's unclear
     * which approach to use, <b>don't worry</b> too much about it; just pick something that seems
     * reasonable and it will be fine.
     *
     * <ul>
     *   <li>If checking whether the <i>caller</i> has violated your method or constructor's contract
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  5. src/main/java/jcifs/util/SmbCircuitBreaker.java

            if (responseTimeHistory.size() > 1000) { // Keep last 1000 measurements
                responseTimeHistory.removeFirst();
            }
    
            // Calculate moving average (simple approach)
            if (!responseTimeHistory.isEmpty()) {
                long sum = responseTimeHistory.stream().mapToLong(Long::longValue).sum();
                avgResponseTime.set(sum / responseTimeHistory.size());
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  6. src/archive/zip/writer.go

    		return nil
    	}
    	// Write data descriptor. This is more complicated than one would
    	// think, see e.g. comments in zipfile.c:putextended() and
    	// https://bugs.openjdk.org/browse/JDK-7073588.
    	// The approach here is to write 8 byte sizes if needed without
    	// adding a zip64 extra in the local header (too late anyway).
    	var buf []byte
    	if w.isZip64() {
    		buf = make([]byte, dataDescriptor64Len)
    	} else {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Jan 28 04:20:09 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

               * block: https://github.com/google/truth/issues/333#issuecomment-765652454
               *
               * Also, it's nice that this approach should let us catch *only* ClassNotFoundException
               * instead of having to catch more broadly (potentially even including, say, a
               * StackOverflowError).
               */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 34.8K bytes
    - Click Count (0)
  8. MIGRATION.md

    2. **Update client applications** to use Fess's JSON Search API (see [API Reference](#api-reference) section)
    3. **Gradually migrate** from GSA query format to Fess's native API
    
    **Alternative Approach**: Instead of relying on GSA API compatibility, we recommend migrating client applications to use Fess's modern JSON API (`/api/v1/documents`), which provides more features and better performance.
    
    ---
    
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 06 12:40:11 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  9. guava/src/com/google/common/base/Predicates.java

       * future changes to it will alter the behavior of the predicate.
       *
       * <p>This method can technically accept any {@code Collection<?>}, but using a typed collection
       * helps prevent bugs. This approach doesn't block any potential users since it is always possible
       * to use {@code Predicates.<Object>in()}.
       *
       * <p>You may prefer to use a method reference (e.g., {@code target::contains}) instead of this
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Multisets.java

          return true;
        }
        if (object instanceof Multiset) {
          Multiset<?> that = (Multiset<?>) object;
          /*
           * We can't simply check whether the entry sets are equal, since that
           * approach fails when a TreeMultiset has a comparator that returns 0
           * when passed unequal elements.
           */
    
          if (multiset.size() != that.size() || multiset.entrySet().size() != that.entrySet().size()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.3K bytes
    - Click Count (0)
Back to Top