Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for primary (0.23 sec)

  1. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       * Future} fails with the given {@code exceptionType}, from the result provided by the {@code
       * fallback}. {@link Function#apply} is not invoked until the primary input has failed, so if the
       * primary input succeeds, it is never invoked. If, during the invocation of {@code fallback}, an
       * exception is thrown, this exception is used as the result of the output {@code Future}.
       *
       * <p>Usage example:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompoundOrdering.java

      final Comparator<? super T>[] comparators;
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Comparator<? super T> primary, Comparator<? super T> secondary) {
        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompoundOrdering.java

      final Comparator<? super T>[] comparators;
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Comparator<? super T> primary, Comparator<? super T> secondary) {
        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     *   <li>whereToDiffer: where in the array the bytes should differ
     *   <li>equalsImpl: which implementation of array equality to use
     * </ul>
     *
     * <p><b>Important note:</b> the primary goal of this benchmark is to ensure that varying {@code
     * whereToDiffer} produces no observable change in performance. We want to make sure that the array
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     *   <li>whereToDiffer: where in the array the bytes should differ
     *   <li>equalsImpl: which implementation of array equality to use
     * </ul>
     *
     * <p><b>Important note:</b> the primary goal of this benchmark is to ensure that varying {@code
     * whereToDiffer} produces no observable change in performance. We want to make sure that the array
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ListenableFuture<Integer> derived =
            catchingAsync(primary, Throwable.class, fallback, directExecutor());
        derived.cancel(true);
        assertTrue(primary.isCancelled());
        assertTrue(primary.wasInterrupted());
      }
    
      public void testCatchingAsync_resultCancelledBeforeFallback() throws Exception {
        SettableFuture<Integer> primary = SettableFuture.create();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/escape/package-info.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    /**
     * Interfaces, utilities, and simple implementations of escapers and encoders. The primary type is
     * {@link Escaper}.
     *
     * <p>Additional escapers implementations are found in the applicable packages: {@link
     * com.google.common.html.HtmlEscapers} in {@code com.google.common.html}, {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 15 21:41:47 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     *
     * <p>Operations on this class make no guarantees about the ordering of elements with equal
     * priority. If you need to enforce an ordering, you can define custom classes or comparators that
     * use a secondary key to break ties in primary priority values. For example, here is a class that
     * applies first-in-first-out tie-breaking to comparable elements. To use it, you would insert a
     * {@code new FIFOEntry(anEntry)} instead of a plain entry object.
     *
     * <pre>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * reached, the proxy will attempt to abort the call to the target, and will throw an {@link
       * UncheckedTimeoutException} to the caller.
       *
       * <p>It is important to note that the primary purpose of the proxy object is to return control to
       * the caller when the timeout elapses; aborting the target method call is of secondary concern.
       * The particular nature and strength of the guarantees made by the proxy is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Futures.java

        return task;
      }
    
      /**
       * Returns a {@code Future} whose result is taken from the given primary {@code input} or, if the
       * primary input fails with the given {@code exceptionType}, from the result provided by the
       * {@code fallback}. {@link Function#apply} is not invoked until the primary input has failed, so
       * if the primary input succeeds, it is never invoked. If, during the invocation of {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
Back to top