Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,244 for needn (0.26 sec)

  1. android/guava/src/com/google/common/collect/Queues.java

       * queue's iterator:
       *
       * <pre>{@code
       * Queue<E> queue = Queues.synchronizedQueue(MinMaxPriorityQueue.<E>create());
       * ...
       * queue.add(element);  // Needn't be in synchronized block
       * ...
       * synchronized (queue) {  // Must synchronize on queue!
       *   Iterator<E> i = queue.iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
       *     foo(i.next());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/FinalizableReferenceQueue.java

         */
        @CheckForNull
        Class<?> loadFinalizer();
      }
    
      /**
       * Tries to load Finalizer from the system class loader. If Finalizer is in the system class path,
       * we needn't create a separate loader.
       */
      static class SystemLoader implements FinalizerLoader {
        // This is used by the ClassLoader-leak test in FinalizableReferenceQueueTest to disable
    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)
  3. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

         */
        @CheckForNull
        Class<?> loadFinalizer();
      }
    
      /**
       * Tries to load Finalizer from the system class loader. If Finalizer is in the system class path,
       * we needn't create a separate loader.
       */
      static class SystemLoader implements FinalizerLoader {
        // This is used by the ClassLoader-leak test in FinalizableReferenceQueueTest to disable
    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)
  4. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          return removal;
        }
      }
    
      /**
       * Any updates to LocalCache.Strength used in CacheBuilder need to be matched in this class for
       * compilation purposes.
       */
      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
    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. android/guava/src/com/google/common/collect/Tables.java

       * of its collection views:
       *
       * <pre>{@code
       * Table<R, C, V> table = Tables.synchronizedTable(HashBasedTable.<R, C, V>create());
       * ...
       * Map<C, V> row = table.row(rowKey);  // Needn't be in synchronized block
       * ...
       * synchronized (table) {  // Synchronizing on table, not row!
       *   Iterator<Entry<C, V>> i = row.entrySet().iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 22:45:41 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MultimapsTest.java

        K key = null;
    
        Multimap<K, V> multimap = Multimaps.synchronizedMultimap(HashMultimap.<K, V>create());
        Collection<V> values = multimap.get(key); // Needn't be in synchronized block
        synchronized (multimap) { // Synchronizing on multimap, not values!
          Iterator<V> i = values.iterator(); // Must be in synchronized block
          while (i.hasNext()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

          void genericTestSynchronizedMultimapSampleCodeCompilation() {
        K key = null;
    
        Multimap<K, V> multimap = Multimaps.synchronizedMultimap(HashMultimap.<K, V>create());
        Collection<V> values = multimap.get(key); // Needn't be in synchronized block
        synchronized (multimap) { // Synchronizing on multimap, not values!
          Iterator<V> i = values.iterator(); // Must be in synchronized block
          while (i.hasNext()) {
            foo(i.next());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

       * of its collection views:
       *
       * <pre>{@code
       * BiMap<Long, String> map = Maps.synchronizedBiMap(
       *     HashBiMap.<Long, String>create());
       * ...
       * Set<Long> set = map.keySet();  // Needn't be in synchronized block
       * ...
       * synchronized (map) {  // Synchronizing on map, not set!
       *   Iterator<Long> it = set.iterator(); // Must be in synchronized block
       *   while (it.hasNext()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * <pre>{@code
       * Multimap<K, V> multimap = Multimaps.synchronizedMultimap(
       *     HashMultimap.<K, V>create());
       * ...
       * Collection<V> values = multimap.get(key);  // Needn't be in synchronized block
       * ...
       * synchronized (multimap) {  // Synchronizing on multimap, not values!
       *   Iterator<V> i = values.iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

         * The key reference queue contains entries whose keys have been garbage collected, and which
         * need to be cleaned up internally.
         */
        @CheckForNull final ReferenceQueue<K> keyReferenceQueue;
    
        /**
         * The value reference queue contains value references whose values have been garbage collected,
         * and which need to be cleaned up internally.
         */
        @CheckForNull final ReferenceQueue<V> valueReferenceQueue;
    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)
Back to top