Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for References (0.16 sec)

  1. 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)
  2. 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)
  3. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        assertNotNull(sepStopwatchA.get());
        // Clear all references to the Stopwatch and wait for it to be gc'd.
        sepStopwatchA.set(null);
        GcFinalization.awaitClear(sepStopwatchRef.get());
        // Return a weak reference to the parallel ClassLoader. This is the reference that should
        // eventually become clear if there are no other references to the ClassLoader.
        return new WeakReference<ClassLoader>(sepLoader);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        assertNotNull(sepStopwatchA.get());
        // Clear all references to the Stopwatch and wait for it to be gc'd.
        sepStopwatchA.set(null);
        GcFinalization.awaitClear(sepStopwatchRef.get());
        // Return a weak reference to the parallel ClassLoader. This is the reference that should
        // eventually become clear if there are no other references to the ClassLoader.
        return new WeakReference<ClassLoader>(sepLoader);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/HashBiMap.java

        final int keyHash;
        final int valueHash;
    
        // All BiEntry instances are strongly reachable from owning HashBiMap through
        // "HashBiMap.hashTableKToV" and "BiEntry.nextInKToVBucket" references.
        // Under that assumption, the remaining references can be safely marked as @Weak.
        // Using @Weak is necessary to avoid retain-cycles between BiEntry instances on iOS,
        // which would cause memory leaks when non-empty HashBiMap with cyclic BiEntry
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMaker.java

    import java.util.concurrent.ConcurrentMap;
    import javax.annotation.CheckForNull;
    
    /**
     * A builder of {@link ConcurrentMap} instances that can have keys or values automatically wrapped
     * in {@linkplain WeakReference weak} references.
     *
     * <p>Usage example:
     *
     * <pre>{@code
     * ConcurrentMap<Request, Stopwatch> timers = new MapMaker()
     *     .concurrencyLevel(4)
     *     .weakKeys()
     *     .makeMap();
     * }</pre>
     *
    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)
  7. guava/src/com/google/common/base/Optional.java

    /**
     * An immutable object that may contain a non-null reference to another object. Each instance of
     * this type either contains a non-null reference, or contains nothing (in which case we say that
     * the reference is "absent"); it is never said to "contain {@code null}".
     *
     * <p>A non-null {@code Optional<T>} reference can be used as a replacement for a nullable {@code T}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Converter.java

     * <i>similar</i>.
     *
     * <h3>Nullability</h3>
     *
     * <p>A converter always converts {@code null} to {@code null} and non-null references to non-null
     * references. It would not make sense to consider {@code null} and a non-null reference to be
     * "different representations of the same information", since one is distinguishable from
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ComparisonChain.java

     *
     *   {@code @Override}{@code
     *   public int compareTo(Foo that) {
     *     return COMPARATOR.compare(this, that);
     *   }
     * }</pre>
     *
     * <p>With method references it is more succinct: {@code comparing(Foo::aString)} for example.
     *
     * <p>Using {@link Comparator} avoids certain types of bugs, for example when you meant to write
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Strings.java

        return Platform.emptyToNull(string);
      }
    
      /**
       * Returns {@code true} if the given string is null or is the empty string.
       *
       * <p>Consider normalizing your string references with {@link #nullToEmpty}. If you do, you can
       * use {@link String#isEmpty()} instead of this method, and you won't need special null-safe forms
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
Back to top