Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for strconv (0.27 sec)

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

            }
          };
    
      private CacheBuilderFactory factoryWithAllKeyStrengths() {
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
      }
    
      private Iterable<LoadingCache<Key, String>> caches() {
        CacheBuilderFactory factory = factoryWithAllKeyStrengths();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/collect/Interners.java

        private final MapMaker mapMaker = new MapMaker();
        private boolean strong = true;
    
        private InternerBuilder() {}
    
        /**
         * Instructs the {@link InternerBuilder} to build a strong interner.
         *
         * @see Interners#newStrongInterner()
         */
        public InternerBuilder strong() {
          this.strong = true;
          return this;
        }
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          MapMaker builder) {
        if (builder.getKeyStrength() == Strength.STRONG
            && builder.getValueStrength() == Strength.STRONG) {
          return new MapMakerInternalMap<>(builder, StrongKeyStrongValueEntry.Helper.<K, V>instance());
        }
        if (builder.getKeyStrength() == Strength.STRONG
            && builder.getValueStrength() == Strength.WEAK) {
    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)
  10. guava-tests/test/com/google/common/collect/InternersTest.java

      }
    
      public void testStrong_builder() {
        int concurrencyLevel = 42;
        Interner<Object> interner =
            Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build();
        InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner;
        assertEquals(Strength.STRONG, internerImpl.map.keyStrength());
      }
    
      public void testWeak_simplistic() {
        String canonical = "a";
        String not = new String("a");
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top