Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for strconv (0.2 sec)

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

     *
     * <p>Applications are encouraged to use a {@code CycleDetectingLockFactory} to create any locks for
     * which external/unmanaged code is executed while the lock is held. (See caveats under
     * <strong>Performance</strong>).
     *
     * <p><strong>Cycle Detection</strong>
     *
     * <p>Deadlocks can arise when locks are acquired in an order that forms a cycle. In a simple
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        return maker;
      }
    
      // constructor tests
    
      public void testDefaults() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker());
    
        assertSame(Strength.STRONG, map.keyStrength());
        assertSame(Strength.STRONG, map.valueStrength());
        assertSame(map.keyStrength().defaultEquivalence(), map.keyEquivalence);
        assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        return maker;
      }
    
      // constructor tests
    
      public void testDefaults() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker());
    
        assertSame(Strength.STRONG, map.keyStrength());
        assertSame(Strength.STRONG, map.valueStrength());
        assertSame(map.keyStrength().defaultEquivalence(), map.keyEquivalence);
        assertSame(map.valueStrength().defaultEquivalence(), map.valueEquivalence());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

       */
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
         * value. This could save ~8 bytes per entry.
         */
    
        STRONG {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.equals();
          }
        },
    
        SOFT {
          @Override
          Equivalence<Object> defaultEquivalence() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  5. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/math/LongMath.java

            if ((p & 1) != 0) {
              res = mulMod(res, a, m);
            }
            a = squareMod(a, m);
          }
          return res;
        }
    
        /** Returns true if n is a strong probable prime relative to the specified base. */
        private boolean testWitness(long base, long n) {
          int r = Long.numberOfTrailingZeros(n - 1);
          long d = (n - 1) >> r;
          base %= n;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  7. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  8. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMaker.java

        keyStrength = checkNotNull(strength);
        if (strength != Strength.STRONG) {
          // STRONG could be used during deserialization.
          useCustomMap = true;
        }
        return this;
      }
    
      Strength getKeyStrength() {
        return MoreObjects.firstNonNull(keyStrength, Strength.STRONG);
      }
    
      /**
       * Specifies that each value (not key) stored in the map should be wrapped in a {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Striped.java

     * i.e. {@code if (key1.equals(key2))} then {@code striped.get(key1) == striped.get(key2)} (assuming
     * {@link Object#hashCode()} is correctly implemented for the keys). Note that if {@code key1} is
     * <strong>not</strong> equal to {@code key2}, it is <strong>not</strong> guaranteed that {@code
     * striped.get(key1) != striped.get(key2)}; the elements might nevertheless be mapped to the same
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
Back to top