Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for strconv (0.26 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheTesting.java

        ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
        if (entry != null) {
          ValueReference<K, V> valueRef = entry.getValueReference();
          // fail on strong/computing refs
          Preconditions.checkState(valueRef instanceof Reference);
          Reference<V> ref = (Reference<V>) valueRef;
          if (ref != null) {
            ref.clear();
          }
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

              }
            });
      }
    
      private CacheBuilderFactory cacheFactory() {
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(0, 1, 10, 100, 1000))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

       * getChecked(future, WillBeUnloadedException.class)}, and returns the loader. The caller can then
       * test that the {@code ClassLoader} can still be GCed. The test amounts to a test that {@code
       * getChecked} holds no strong references to the class.
       */
      private WeakReference<?> doTestClassUnloading() throws Exception {
        URLClassLoader shadowLoader = new URLClassLoader(parseJavaClassPath(), null);
        @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        // so more than (maximumSize / #segments) keys could get assigned to the same segment, which
        // would cause one to be evicted.
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(400, 1000))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.Strength.STRONG;
    import static com.google.common.collect.MapMakerInternalMap.Strength.WEAK;
    import static com.google.common.testing.SerializableTester.reserializeAndAssert;
    import static java.util.Arrays.asList;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheBuilder.java

      Supplier<? extends StatsCounter> statsCounterSupplier = NULL_STATS_COUNTER;
    
      private CacheBuilder() {}
    
      /**
       * Constructs a new {@code CacheBuilder} instance with default settings, including strong keys,
       * strong values, and no automatic eviction of any kind.
       *
       * <p>Note that while this return type is {@code CacheBuilder<Object, Object>}, type parameters on
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheTesting.java

        ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
        if (entry != null) {
          ValueReference<K, V> valueRef = entry.getValueReference();
          // fail on strong/computing refs
          Preconditions.checkState(valueRef instanceof Reference);
          Reference<V> ref = (Reference<V>) valueRef;
          if (ref != null) {
            ref.clear();
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableList.java

       * immutable list is returned.)
       *
       * <p><b>Note:</b> in almost all circumstances, the returned {@link ImmutableList} retains a
       * strong reference to {@code this}, which may prevent the original list from being garbage
       * collected. If you want the original list to be eligible for garbage collection, you should
       * create and use a copy of the sub list (e.g., {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/FinalizableReferenceQueue.java

    import javax.annotation.CheckForNull;
    
    /**
     * A reference queue with an associated background thread that dequeues references and invokes
     * {@link FinalizableReference#finalizeReferent()} on them.
     *
     * <p>Keep a strong reference to this object until all of the associated referents have been
     * finalized. If this object is garbage collected earlier, the backing thread will not invoke {@code
     * finalizeReferent()} on the remaining references.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

    import javax.annotation.CheckForNull;
    
    /**
     * A reference queue with an associated background thread that dequeues references and invokes
     * {@link FinalizableReference#finalizeReferent()} on them.
     *
     * <p>Keep a strong reference to this object until all of the associated referents have been
     * finalized. If this object is garbage collected earlier, the backing thread will not invoke {@code
     * finalizeReferent()} on the remaining references.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
Back to top