Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 798 for remove (0.22 sec)

  1. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * creation and removal (including automatic removal of zeroes). If the modification of an
       * AtomicInteger results in zero, we compareAndSet the value to zero; if that succeeds, we remove
       * the entry from the Map. If another operation sees a zero in the map, it knows that the entry is
       * about to be removed, so this operation may remove it (often by replacing it with a new
       * AtomicInteger).
       */
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * creation and removal (including automatic removal of zeroes). If the modification of an
       * AtomicInteger results in zero, we compareAndSet the value to zero; if that succeeds, we remove
       * the entry from the Map. If another operation sees a zero in the map, it knows that the entry is
       * about to be removed, so this operation may remove it (often by replacing it with a new
       * AtomicInteger).
       */
    
    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)
  3. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          entrySet.remove(entryOf(2, 2));
          assertFalse(entrySet.remove(null));
          assertFalse(entrySet.remove(entryOf(1, 1)));
          assertFalse(entrySet.remove(entryOf(6, 6)));
          assertFalse(entrySet.removeAll(asList(null, entryOf(1, 1), entryOf(15, 15))));
          assertFalse(entrySet.retainAll(asList(null, entryOf(1, 1), entryOf(15, 15))));
          checkEmpty(entrySet);
          checkEmpty(cache);
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

          }
        }
    
        /**
         * Removes <b>all</b> occurrences of the specified element from this multiset. This method
         * complements {@link Multiset#remove(Object)}, which removes only one occurrence at a time.
         *
         * @param element the element whose occurrences should all be removed
         * @return the number of occurrences successfully removed, possibly zero
         */
    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)
  5. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

          }
        }
    
        /**
         * Removes <b>all</b> occurrences of the specified element from this multiset. This method
         * complements {@link Multiset#remove(Object)}, which removes only one occurrence at a time.
         *
         * @param element the element whose occurrences should all be removed
         * @return the number of occurrences successfully removed, possibly zero
         */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        AtomicLong atomic = map.get(key);
        if (atomic == null) {
          return false;
        }
    
        long oldValue = atomic.get();
        if (oldValue != value) {
          return false;
        }
    
        if (oldValue == 0L || atomic.compareAndSet(oldValue, 0L)) {
          // only remove after setting to zero, to avoid concurrent updates
          map.remove(key, atomic);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          entrySet.remove(entryOf(2, 2));
          assertFalse(entrySet.remove(null));
          assertFalse(entrySet.remove(entryOf(1, 1)));
          assertFalse(entrySet.remove(entryOf(6, 6)));
          assertFalse(entrySet.removeAll(asList(null, entryOf(1, 1), entryOf(15, 15))));
          assertFalse(entrySet.retainAll(asList(null, entryOf(1, 1), entryOf(15, 15))));
          checkEmpty(entrySet);
          checkEmpty(cache);
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/StandardTable.java

      @Override
      @CheckForNull
      public V remove(@CheckForNull Object rowKey, @CheckForNull Object columnKey) {
        if ((rowKey == null) || (columnKey == null)) {
          return null;
        }
        Map<C, V> map = safeGet(backingMap, rowKey);
        if (map == null) {
          return null;
        }
        V value = map.remove(columnKey);
        if (map.isEmpty()) {
          backingMap.remove(rowKey);
        }
        return value;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 29.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multiset.java

       *
       * <p>This method refines {@link Collection#remove} to further specify that it <b>may not</b>
       * throw an exception in response to {@code element} being null or of the wrong type.
       *
       * <p>To both remove the element and obtain the previous count of that element, use {@link
       * #remove(Object, int) remove}{@code (element, 1)} instead.
       *
       * @param element the element to remove one occurrence of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals((Integer) 2, it.next());
        it.remove();
        // After this remove, 400 has moved up and 20 down past cursor
        assertTrue("Heap is not intact after remove", mmHeap.isIntact());
        assertEquals((Integer) 10, it.next());
        assertEquals((Integer) 3, it.next());
        it.remove();
        // After this remove, 400 moved down again and 500 up past the cursor
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
Back to top