Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for makeEmptyMap (0.07 sec)

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

      }
    
      public void testEqualsForEmptyMap() {
        Map<K, V> map;
        try {
          map = makeEmptyMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
    
        // Explicitly call `equals`; `assertEquals` might return fast
        assertTrue(map.equals(map));
        assertTrue(makeEmptyMap().equals(map));
        assertEquals(emptyMap(), map);
        assertFalse(map.equals(emptySet()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      }
    
      public void testEqualsForEmptyMap() {
        Map<K, V> map;
        try {
          map = makeEmptyMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
    
        // Explicitly call `equals`; `assertEquals` might return fast
        assertTrue(map.equals(map));
        assertTrue(makeEmptyMap().equals(map));
        assertEquals(emptyMap(), map);
        assertFalse(map.equals(emptySet()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

     *
     * @author Isaac Shum
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MapsTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected Map<String, String> makeEmptyMap() {
        return transformValues(Maps.<String, String>newHashMap(), Functions.<String>identity());
      }
    
      @Override
      protected Map<String, String> makePopulatedMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        }
    
        abstract Table<Character, String, Integer> makeTable();
    
        @Override
        protected Map<String, Integer> makeEmptyMap() {
          return makeTable().row('a');
        }
    
        @Override
        protected Map<String, Integer> makePopulatedMap() {
          Table<Character, String, Integer> table = makeTable();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TableCollectionTest.java

        }
    
        abstract Table<Character, String, Integer> makeTable();
    
        @Override
        protected Map<String, Integer> makeEmptyMap() {
          return makeTable().row('a');
        }
    
        @Override
        protected Map<String, Integer> makePopulatedMap() {
          Table<Character, String, Integer> table = makeTable();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapsSortedTransformValuesTest.java

     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MapsSortedTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected SortedMap<String, String> makeEmptyMap() {
        return transformValues(Maps.<String, String>newTreeMap(), Functions.<String>identity());
      }
    
      @Override
      protected SortedMap<String, String> makePopulatedMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

     *
     * @author Isaac Shum
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MapsTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected Map<String, String> makeEmptyMap() {
        return transformValues(Maps.<String, String>newHashMap(), Functions.<String>identity());
      }
    
      @Override
      protected Map<String, String> makePopulatedMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

        multimap.put("a", -1);
        multimap.put("a", -3);
        multimap.put("z", -2);
        return multimap;
      }
    
      @Override
      protected Map<String, Collection<Integer>> makeEmptyMap() {
        return createMultimap().asMap().subMap("e", "p");
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        TreeMultimap<String, Integer> multimap = createMultimap();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

            @Override
            public boolean retainAll(Collection<?> c) {
              return delegate.entrySet().retainAll(c);
            }
          };
        }
      }
    
      @Override
      protected Map<String, String> makeEmptyMap() {
        Map<String, Integer> underlying = Maps.newHashMap();
        return transformValues(
            new UnmodifiableIteratorMap<String, Integer>(underlying), Functions.toStringFunction());
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top