Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 509 for it (0.15 sec)

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

                task = null;
              }
            }
          } finally {
            // Ensure that if the thread was interrupted at all while processing the task queue, it
            // is returned to the delegate Executor interrupted so that it may handle the
            // interruption if it likes.
            if (interruptedDuringTask) {
              Thread.currentThread().interrupt();
            }
          }
        }
    
        @SuppressWarnings("GuardedBy")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

        /*
         * TODO(cpovirk): Should whenAllComplete().call*() log errors, too? Currently, it doesn't call
         * handleException() at all.
         */
        if (throwable instanceof Error) {
          /*
           * TODO(cpovirk): Do we really want to log this if we called setException(throwable) and it
           * returned true? This was intentional (CL 46470009), but it seems odd compared to how we
           * normally handle Error.
           *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Comparators.java

          Iterable<? extends T> iterable, Comparator<T> comparator) {
        checkNotNull(comparator);
        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
          while (it.hasNext()) {
            T next = it.next();
            if (comparator.compare(prev, next) >= 0) {
              return false;
            }
            prev = next;
          }
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 10K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        private boolean foundAndRemovedExactReference(Iterable<E> elements, E target) {
          for (Iterator<E> it = elements.iterator(); it.hasNext(); ) {
            E element = it.next();
            if (element == target) {
              it.remove();
              return true;
            }
          }
          return false;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Throwables.java

        propagateIfInstanceOf(throwable, declaredType1);
        propagateIfPossible(throwable, declaredType2);
      }
    
      /**
       * Propagates {@code throwable} as-is if it is an instance of {@link RuntimeException} or {@link
       * Error}, or else as a last resort, wraps it in a {@code RuntimeException} and then propagates.
       *
       * <p>This method always throws an exception. The {@code RuntimeException} return type allows
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Throwables.java

        propagateIfInstanceOf(throwable, declaredType1);
        propagateIfPossible(throwable, declaredType2);
      }
    
      /**
       * Propagates {@code throwable} as-is if it is an instance of {@link RuntimeException} or {@link
       * Error}, or else as a last resort, wraps it in a {@code RuntimeException} and then propagates.
       *
       * <p>This method always throws an exception. The {@code RuntimeException} return type allows
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * is complete. It does so by using daemon threads and adding a shutdown hook to wait for their
       * completion.
       *
       * <p>This is mainly for fixed thread pools. See {@link Executors#newFixedThreadPool(int)}.
       *
       * @param executor the executor to modify to make sure it exits when the application is finished
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     * thought of as overkill; however, it's difficult to determine which proper subset of this massive
     * set would be sufficient to expose any possible bug. Brute force is simpler.
     *
     * <p>To use this class the concrete subclass must implement the {@link
     * IteratorTester#newTargetIterator()} method. This is because it's impossible to test an Iterator
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java

      private String suiteName;
      private @Nullable Runnable setUp;
      private @Nullable Runnable tearDown;
    
      // public so that it can be referenced in generated GWT tests.
      @Override
      public void setUp() throws Exception {
        if (setUp != null) {
          setUp.run();
        }
      }
    
      // public so that it can be referenced in generated GWT tests.
      @Override
      public void tearDown() throws Exception {
        if (tearDown != null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

        } catch (IllegalArgumentException expected) {
        }
    
        /* Map can be empty if it's an EnumHashBiMap. */
        Map<Currency, String> emptyBimap = EnumHashBiMap.create(Currency.class);
        bimap = EnumHashBiMap.create(emptyBimap);
        assertTrue(bimap.isEmpty());
    
        /* Map can be empty if it's an EnumBiMap. */
        Map<Currency, Country> emptyBimap2 = EnumBiMap.create(Currency.class, Country.class);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top