Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for once (0.36 sec)

  1. guava/src/com/google/common/cache/CacheBuilder.java

       * segments, each governed by its own write lock. The segment lock is taken once for each explicit
       * write, and twice for each cache loading computation (once prior to loading the new value, and
       * once after loading completes). Much internal cache management is performed at the segment
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

     *
     * @author Sven Mawson
     * @author Luke Sandberg
     * @since 1.0
     */
    @SuppressWarnings({
      "ShortCircuitBoolean", // we use non-short circuiting comparisons intentionally
      "nullness", // TODO(b/147136275): Remove once our checker understands & and |.
    })
    @GwtCompatible(emulated = true)
    @ReflectionSupport(value = ReflectionSupport.Level.FULL)
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

      }
    
      public void testReload() throws ExecutionException {
        final Object one = new Object();
        final Object two = new Object();
        CacheLoader<Object, Object> loader =
            new CacheLoader<Object, Object>() {
              @Override
              public Object load(Object key) {
                return one;
              }
    
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

      }
    
      public void testReload() throws ExecutionException {
        final Object one = new Object();
        final Object two = new Object();
        CacheLoader<Object, Object> loader =
            new CacheLoader<Object, Object>() {
              @Override
              public Object load(Object key) {
                return one;
              }
    
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

     * ClosingFuture#finishToValueAndCloser(ValueAndCloserConsumer, Executor)} paths to complete a
     * {@link ClosingFuture} pipeline.
     */
    public abstract class AbstractClosingFutureTest extends TestCase {
      // TODO(dpb): Use Expect once that supports JUnit 3, or we can use JUnit 4.
      final List<AssertionError> failures = new ArrayList<>();
      final StandardSubjectBuilder expect =
          StandardSubjectBuilder.forCustomFailureStrategy(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          while (referenceQueue.poll() != null) {}
        }
    
        /** Returns first entry of bin for given hash. */
        @CheckForNull
        E getFirst(int hash) {
          // read this volatile field only once
          AtomicReferenceArray<E> table = this.table;
          return table.get(hash & (table.length() - 1));
        }
    
        // Specialized implementations of map methods
    
        @CheckForNull
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetsTest.java

        ImmutableSet<SomeEnum> none = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of());
        assertThat(none).isEmpty();
    
        ImmutableSet<SomeEnum> one = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B));
        assertThat(one).contains(SomeEnum.B);
    
        ImmutableSet<SomeEnum> two = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Iterators.java

             * element anymore. Otherwise, when we remove from the old iterator, we may be invalidating
             * the new one. The result is a ConcurrentModificationException or other bad behavior.
             *
             * (If we decide that we really, really hate allocating two Iterators per cycle instead of
             * one, we can optimistically store the new Iterator and then be willing to throw it out if
             * the user calls remove().)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Futures.java

       * that accepts zero or more arguments, all of type {@code String} or {@code Throwable}
       * (preferring constructors with at least one {@code String}, then preferring constructors with at
       * least one {@code Throwable}) and calling the constructor via reflection. If the exception did
       * not already have a cause, one is set by calling {@link Throwable#initCause(Throwable)} on it.
    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)
  10. android/guava/src/com/google/common/collect/Iterators.java

             * element anymore. Otherwise, when we remove from the old iterator, we may be invalidating
             * the new one. The result is a ConcurrentModificationException or other bad behavior.
             *
             * (If we decide that we really, really hate allocating two Iterators per cycle instead of
             * one, we can optimistically store the new Iterator and then be willing to throw it out if
             * the user calls remove().)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top