Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 79 for notifications (0.17 sec)

  1. android/guava/src/com/google/common/cache/LocalCache.java

       * evictEntry is called (once the lock is released).
       */
      void processPendingNotifications() {
        RemovalNotification<K, V> notification;
        while ((notification = removalNotificationQueue.poll()) != null) {
          try {
            removalListener.onRemoval(notification);
          } catch (Throwable e) {
            logger.log(Level.WARNING, "Exception thrown by removal listener", e);
          }
        }
      }
    
    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)
  2. guava/src/com/google/common/cache/RemovalListener.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * An object that can receive a notification when an entry is removed from a cache. The removal
     * resulting in notification could have occurred to an entry being manually removed or replaced, or
     * due to eviction resulting from timed expiration, exceeding a maximum size, or garbage collection.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2K bytes
    - Viewed (0)
  3. LICENSE

              as modifying the License.
    
          You may add Your own copyright statement to Your modifications and
          may provide additional or different license terms and conditions
          for use, reproduction, or distribution of Your modifications, or
          for any such Derivative Works as a whole, provided Your use,
          reproduction, and distribution of the Work otherwise complies with
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 22 18:59:39 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ListsTest.java

        List<Integer> toList = Lists.reverse(fromList);
        assertReverseView(fromList, toList);
      }
    
      private static void assertReverseView(List<Integer> fromList, List<Integer> toList) {
        /* fromList modifications reflected in toList */
        fromList.set(0, 5);
        assertEquals(asList(4, 3, 2, 5), toList);
        fromList.add(6);
        assertEquals(asList(6, 4, 3, 2, 5), toList);
        fromList.add(2, 9);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractMultiset.java

     * implementation can be created easily by extending this class and implementing the {@link
     * Multiset#entrySet()} method, plus optionally overriding {@link #add(Object, int)} and {@link
     * #remove(Object, int)} to enable modifications to the multiset.
     *
     * <p>The {@link #count} and {@link #size} implementations all iterate across the set returned by
     * {@link Multiset#entrySet()}, as do many methods acting on the set returned by {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

    import java.util.concurrent.atomic.AtomicInteger;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A multiset that supports concurrent modifications and that provides atomic versions of most
     * {@code Multiset} operations (exceptions where noted). Null elements are not supported.
     *
     * <p>See the Guava User Guide article on <a href=
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      // Element Mutation
    
      @Test
      public void putEdge_existingNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        // Adding nodes initially for safety (insulating from possible future
        // modifications to proxy methods)
        addNode(N1);
        addNode(N2);
    
        assertThat(graphAsMutableGraph.putEdge(N1, N2)).isTrue();
      }
    
      @Test
      public void putEdge_existingEdgeBetweenSameNodes() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/Cache.java

       * all values is returned.
       *
       */
      CacheStats stats();
    
      /**
       * Returns a view of the entries stored in this cache as a thread-safe map. Modifications made to
       * the map directly affect the cache.
       *
       * <p>Iterators from the returned map are at least <i>weakly consistent</i>: they are safe for
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      // Element Mutation
    
      @Test
      public void putEdge_existingNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        // Adding nodes initially for safety (insulating from possible future
        // modifications to proxy methods)
        addNode(N1);
        addNode(N2);
    
        assertThat(graphAsMutableGraph.putEdge(N1, N2)).isTrue();
      }
    
      @Test
      public void putEdge_existingEdgeBetweenSameNodes() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

          }
        }
    
        /**
         * {@inheritDoc}
         *
         * <p>If the data in the multiset is modified by any other threads during this method, it is
         * undefined which (if any) of these modifications will be reflected in the result.
         */
        @Override
        public int size() {
          long sum = 0L;
          for (Integer value : countMap.values()) {
            sum += value;
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
Back to top