Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,150 for if (0.12 sec)

  1. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       *
       * <p>Triggers test case failure if any thread assertions have failed, by rethrowing, in the test
       * harness thread, any exception recorded earlier by threadRecordFailure.
       *
       * <p>Triggers test case failure if interrupt status is set in the main thread.
       */
      @Override
      public void tearDown() throws Exception {
        Throwable t = threadFailure.getAndSet(null);
        if (t != null) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/CacheBuilderSpec.java

        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        if (initialCapacity != null) {
          builder.initialCapacity(initialCapacity);
        }
        if (maximumSize != null) {
          builder.maximumSize(maximumSize);
        }
        if (maximumWeight != null) {
          builder.maximumWeight(maximumWeight);
        }
        if (concurrencyLevel != null) {
          builder.concurrencyLevel(concurrencyLevel);
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ForwardingList.java

       * you override {@link #listIterator()}, you may wish to override {@link #iterator} to forward to
       * this implementation.
       *
       * @since 7.0
       */
      protected Iterator<E> standardIterator() {
        return listIterator();
      }
    
      /**
       * A sensible default implementation of {@link #listIterator()}, in terms of {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          boolean executeImmediate = false;
    
          synchronized (runnables) {
            if (!executed) {
              runnables.add(new RunnableExecutorPair(runnable, executor));
            } else {
              executeImmediate = true;
            }
          }
    
          if (executeImmediate) {
            new RunnableExecutorPair(runnable, executor).execute();
          }
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/CacheLoader.java

       * to {@link LoadingCache#get} if this method is not overridden.
       *
       * @param keys the unique, non-null keys whose values should be loaded
       * @return a map from each key in {@code keys} to the value associated with that key; <b>may not
       *     contain null values</b>
       * @throws Exception if unable to load the result
       * @throws InterruptedException if this method is interrupted. {@code InterruptedException} is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 9.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Ascii.java

            "maxLength (%s) must be >= length of the truncation indicator (%s)",
            maxLength,
            truncationIndicator.length());
    
        if (seq.length() <= maxLength) {
          String string = seq.toString();
          if (string.length() <= maxLength) {
            return string;
          }
          // if the length of the toString() result was > maxLength for some reason, truncate that
          seq = string;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

     *
     * <p>A "lock-like object" is really any object that may be used for concurrency control. If the
     * {@link #callAndAssertBlocks} method is ever called in a test, the lock-like object must have a
     * method equivalent to {@link java.util.concurrent.locks.ReentrantLock#hasQueuedThread(Thread)}. If
     * the {@link #callAndAssertWaits} method is ever called in a test, the lock-like object must have a
     * method equivalent to {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

          V oldValue = delegateMap.put(key, value);
          if (oldValue != null) {
            if (throwIfDuplicateKeys) {
              throw conflictException("key", entryArray[i], entryArray[i].getKey() + "=" + oldValue);
            }
            if (duplicates == null) {
              duplicates = new HashMap<>();
            }
            duplicates.put(key, value);
            dupCount++;
          }
        }
        if (duplicates != null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/Closeables.java

       *     threw = false;
       *   } finally {
       *     // If an exception occurs, rethrow it only if threw==false:
       *     Closeables.close(stream, threw);
       *   }
       * }
       * }</pre>
       *
       * @param closeable the {@code Closeable} object to be closed, or null, in which case this method
       *     does nothing
       * @param swallowIOException if true, don't propagate IO exceptions thrown by the {@code close}
       *     methods
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Suppliers.java

       * delegating calls until it returns valid data.
       *
       * <p>If {@code delegate} is an instance created by an earlier call to {@code memoize}, it is
       * returned directly.
       */
      public static <T extends @Nullable Object> Supplier<T> memoize(Supplier<T> delegate) {
        if (delegate instanceof NonSerializableMemoizingSupplier
            || delegate instanceof MemoizingSupplier) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top