Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Remove (0.33 sec)

  1. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        map.put(one, two);
        map.remove(one);
        assertNotified(listener, one, two, RemovalCause.EXPLICIT);
    
        map.put(two, three);
        map.remove(two, three);
        assertNotified(listener, two, three, RemovalCause.EXPLICIT);
    
        map.put(three, four);
        Iterator<?> i = map.entrySet().iterator();
        i.next();
        i.remove();
        assertNotified(listener, three, four, RemovalCause.EXPLICIT);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        map.put(one, two);
        map.remove(one);
        assertNotified(listener, one, two, RemovalCause.EXPLICIT);
    
        map.put(two, three);
        map.remove(two, three);
        assertNotified(listener, two, three, RemovalCause.EXPLICIT);
    
        map.put(three, four);
        Iterator<?> i = map.entrySet().iterator();
        i.next();
        i.remove();
        assertNotified(listener, three, four, RemovalCause.EXPLICIT);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

        }
      }
    
      @CheckForNull
      @CanIgnoreReturnValue
      @Override
      public V remove(@CheckForNull Object key) {
        if (key == null) {
          return null;
        }
        int hash = hash(key);
        return segmentFor(hash).remove(key, hash);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean remove(@CheckForNull Object key, @CheckForNull Object value) {
        if (key == null || value == null) {
    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)
  4. android/guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        public boolean remove(@CheckForNull Object o) {
          try {
            return super.remove(o);
          } catch (UnsupportedOperationException e) {
            for (Entry<K, V> entry : map().entrySet()) {
              if (Objects.equal(o, entry.getValue())) {
                map().remove(entry.getKey());
                return true;
              }
            }
    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)
  5. android/guava/src/com/google/common/cache/LocalCache.java

        }
      }
    
      @CheckForNull
      @CanIgnoreReturnValue
      @Override
      public V remove(@CheckForNull Object key) {
        if (key == null) {
          return null;
        }
        int hash = hash(key);
        return segmentFor(hash).remove(key, hash);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean remove(@CheckForNull Object key, @CheckForNull Object value) {
        if (key == null || value == null) {
    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/util/concurrent/FuturesTest.java

        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top