Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 806 for supports (0.17 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

        extends AbstractCollectionTester<E> {
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_supportedNothing() {
        assertFalse("addAll(nothing) should return false", collection.addAll(emptyCollection()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddAll_unsupportedNothing() {
        try {
          assertFalse(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java

    import static com.google.common.collect.testing.Helpers.assertEmpty;
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ADD;
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_REMOVE;
    import static com.google.common.collect.testing.features.CollectionSize.SEVERAL;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java

      @ListFeature.Require(absent = SUPPORTS_REMOVE_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveAtIndex_unsupported() {
        try {
          getList().remove(0);
          fail("remove(i) should throw");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX)
      public void testRemoveAtIndex_negative() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java

        return (ConcurrentMap<K, V>) super.getMap();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplace_supportedPresent() {
        assertEquals(v0(), getMap().replace(k0(), v3()));
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplace_supportedPresentNoChange() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        getMap().clear();
        assertTrue("After clear(), a map should be empty.", getMap().isEmpty());
        assertEquals(0, getMap().size());
        assertFalse(getMap().entrySet().iterator().hasNext());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java

      REJECTS_DUPLICATES_AT_CREATION,
    
      SUPPORTS_ADD,
      SUPPORTS_REMOVE,
      SUPPORTS_ITERATOR_REMOVE,
      FAILS_FAST_ON_CONCURRENT_MODIFICATION,
    
      /**
       * Features supported by general-purpose collections - everything but {@link #RESTRICTS_ELEMENTS}.
       *
       * @see java.util.Collection the definition of general-purpose collections.
       */
      GENERAL_PURPOSE(SUPPORTS_ADD, SUPPORTS_REMOVE, SUPPORTS_ITERATOR_REMOVE),
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_VALUES;
    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.testing.AbstractMapTester;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        extends AbstractMultimapTester<K, V, Multimap<K, V>> {
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      public void testReplaceValuesWithNullValue() {
        List<V> values = Arrays.asList(v0(), null, v3());
        multimap().replaceValues(k0(), values);
        assertGet(k0(), values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testReplaceValuesWithNullKey() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java

    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_VALUES;
    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.Multimap;
    import com.google.common.collect.testing.Helpers;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Nov 16 17:41:24 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ADD;
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ITERATOR_REMOVE;
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_REMOVE;
    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 9.6K bytes
    - Viewed (0)
Back to top