Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 436 for Remove (1.05 sec)

  1. android/guava-tests/test/com/google/common/collect/CompactHashSetTest.java

                CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                CollectionFeature.GENERAL_PURPOSE,
                CollectionFeature.REMOVE_OPERATIONS,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.SUPPORTS_ADD,
                CollectionFeature.SUPPORTS_REMOVE);
    
        TestSuite suite = new TestSuite();
        suite.addTestSuite(CompactHashSetTest.class);
        suite.addTest(
            SetTestSuiteBuilder.using(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/NullCacheTest.java

                .build(constantLoader(computed));
    
        Object key = new Object();
        assertSame(computed, cache.getUnchecked(key));
        RemovalNotification<Object, Object> notification = listener.remove();
        assertSame(key, notification.getKey());
        assertSame(computed, notification.getValue());
        assertSame(RemovalCause.SIZE, notification.getCause());
        assertTrue(listener.isEmpty());
        checkEmpty(cache);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/CompactHashSetTest.java

                CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                CollectionFeature.GENERAL_PURPOSE,
                CollectionFeature.REMOVE_OPERATIONS,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.SUPPORTS_ADD,
                CollectionFeature.SUPPORTS_REMOVE);
    
        TestSuite suite = new TestSuite();
        suite.addTestSuite(CompactHashSetTest.class);
        suite.addTest(
            SetTestSuiteBuilder.using(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertTrue(cycle.hasNext());
        try {
          cycle.remove();
          fail("no exception thrown");
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testCycleRemoveSameElementTwice() {
        Iterator<String> cycle = Iterators.cycle("a", "b");
        cycle.next();
        cycle.remove();
        try {
          cycle.remove();
          fail("no exception thrown");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

            return delegate().iterator();
          }
    
          @Override
          public int size() {
            return delegate().size();
          }
    
          @Override
          public boolean remove(Object o) {
            return delegate().remove(o);
          }
    
          @Override
          public void clear() {
            delegate().clear();
          }
        };
      }
    
      @Override
      public @Nullable Entry<K, V> firstEntry() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

            return delegate().iterator();
          }
    
          @Override
          public int size() {
            return delegate().size();
          }
    
          @Override
          public boolean remove(Object o) {
            return delegate().remove(o);
          }
    
          @Override
          public void clear() {
            delegate().clear();
          }
        };
      }
    
      @Override
      public @Nullable Entry<K, V> firstEntry() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java

     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_PUT;
    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.testing.features.MapFeature;
    import java.util.Arrays;
    import java.util.List;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

                        int size = elements.length;
                        // Remove last element, if size > 1
                        Set<String> set1 =
                            (size > 1)
                                ? Sets.newHashSet(Arrays.asList(elements).subList(0, size - 1))
                                : Sets.newHashSet(elements);
                        // Remove first element, if size > 0
                        Set<String> set2 =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  9. 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)
  10. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

        }
      }
    
      /**
       * Removes a number of occurrences of the specified element from this multiset. If the multiset
       * contains fewer than this number of occurrences to begin with, all occurrences will be removed.
       *
       * @param element the element whose occurrences should be removed
       * @param occurrences the number of occurrences of the element to remove
    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)
Back to top