Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for Weak (0.19 sec)

  1. guava-testlib/src/com/google/common/testing/GcFinalization.java

       *   <li>clearing weak references to unreachable referents
       *   <li>enqueuing weak references to unreachable referents in their reference queue
       * </ul>
       */
      @DoNotMock("Implement with a lambda")
      public interface FinalizationPredicate {
        boolean isDone();
      }
    
      /**
       * Waits until the given weak reference is cleared, invoking the garbage collector as necessary to
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

       *   <li>clearing weak references to unreachable referents
       *   <li>enqueuing weak references to unreachable referents in their reference queue
       * </ul>
       */
      @DoNotMock("Implement with a lambda")
      public interface FinalizationPredicate {
        boolean isDone();
      }
    
      /**
       * Waits until the given weak reference is cleared, invoking the garbage collector as necessary to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        }
        if (builder.getKeyStrength() == Strength.WEAK
            && builder.getValueStrength() == Strength.STRONG) {
          return new MapMakerInternalMap<>(builder, WeakKeyDummyValueEntry.Helper.<K>instance());
        }
        if (builder.getValueStrength() == Strength.WEAK) {
          throw new IllegalArgumentException("Map cannot have both weak and dummy values");
        }
        throw new AssertionError();
      }
    
    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)
  4. guava/src/com/google/common/cache/LocalCache.java

        static final int WRITE_MASK = 2;
        static final int WEAK_MASK = 4;
    
        /** Look-up table for factories. */
        static final EntryFactory[] factories = {
          STRONG,
          STRONG_ACCESS,
          STRONG_WRITE,
          STRONG_ACCESS_WRITE,
          WEAK,
          WEAK_ACCESS,
          WEAK_WRITE,
          WEAK_ACCESS_WRITE,
        };
    
        static EntryFactory getFactory(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

        static final int WRITE_MASK = 2;
        static final int WEAK_MASK = 4;
    
        /** Look-up table for factories. */
        static final EntryFactory[] factories = {
          STRONG,
          STRONG_ACCESS,
          STRONG_WRITE,
          STRONG_ACCESS_WRITE,
          WEAK,
          WEAK_ACCESS,
          WEAK_WRITE,
          WEAK_ACCESS_WRITE,
        };
    
        static EntryFactory getFactory(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        checkStrength(map, Strength.WEAK, Strength.STRONG);
        assertThat(map.entryHelper)
            .isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class);
      }
    
      public void testSetWeakValues() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues());
        checkStrength(map, Strength.STRONG, Strength.WEAK);
        assertThat(map.entryHelper)
    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)
  7. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        checkStrength(map, Strength.WEAK, Strength.STRONG);
        assertThat(map.entryHelper)
            .isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class);
      }
    
      public void testSetWeakValues() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues());
        checkStrength(map, Strength.STRONG, Strength.WEAK);
        assertThat(map.entryHelper)
    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)
  8. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

          iter.peek();
          fail("peek() should still throw NoSuchElementException after next()");
        } catch (NoSuchElementException expected) {
        }
      }
    
    
      @J2ktIncompatible // weak references, details of GC
      @GwtIncompatible // weak references
      @AndroidIncompatible // depends on details of GC
      public void testFreesNextReference() {
        Iterator<Object> itr =
            new AbstractIterator<Object>() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

          /*
           * Using weak references here could let us release exceptions earlier, but:
           *
           * 1. On Android, querying a WeakReference blocks if the GC is doing an otherwise-concurrent
           * pass.
           *
           * 2. We would probably choose to compare exceptions using == instead of equals() (for
           * consistency with how weak references are cleared). That's a behavior change -- arguably the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  10. .idea/inspectionProfiles/Gradle.xml

        <inspection_tool class="21f28a86-2ba8-3048-9ce1-b6f10d4d4a12" enabled="true" level="WEAK WARNING" enabled_by_default="true" editorAttributes="INFO_ATTRIBUTES" />
        <inspection_tool class="62125fc1-a999-3cf1-9b9b-a30b4375d9bf" enabled="true" level="WARNING" enabled_by_default="true" />
        <inspection_tool class="73cd39e8-e54e-3a38-ad1b-b883fff4b1eb" enabled="true" level="WEAK WARNING" enabled_by_default="true" editorAttributes="INFO_ATTRIBUTES" />
    XML
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu Apr 11 13:39:08 GMT 2024
    - 13K bytes
    - Viewed (0)
Back to top