Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for makePopulatedMap (0.25 sec)

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

       *     class under test.
       */
      protected abstract Map<K, V> makePopulatedMap() throws UnsupportedOperationException;
    
      /**
       * Creates a new key that is not expected to be found in {@link #makePopulatedMap()}.
       *
       * @return a key.
       * @throws UnsupportedOperationException if it's not possible to make a key that will not be found
       *     in the map.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

       *     class under test.
       */
      protected abstract Map<K, V> makePopulatedMap() throws UnsupportedOperationException;
    
      /**
       * Creates a new key that is not expected to be found in {@link #makePopulatedMap()}.
       *
       * @return a key.
       * @throws UnsupportedOperationException if it's not possible to make a key that will not be found
       *     in the map.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  3. android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

      protected abstract SortedMap<K, V> makeEmptyMap() throws UnsupportedOperationException;
    
      @Override
      protected abstract SortedMap<K, V> makePopulatedMap() throws UnsupportedOperationException;
    
      @Override
      protected SortedMap<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return makeEmptyMap();
        }
      }
    
      public void testTailMapWriteThrough() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

      protected abstract SortedMap<K, V> makeEmptyMap() throws UnsupportedOperationException;
    
      @Override
      protected abstract SortedMap<K, V> makePopulatedMap() throws UnsupportedOperationException;
    
      @Override
      protected SortedMap<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return makeEmptyMap();
        }
      }
    
      public void testTailMapWriteThrough() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        @Override
        protected Map<String, Integer> makeEmptyMap() {
          return makeTable().row('a');
        }
    
        @Override
        protected Map<String, Integer> makePopulatedMap() {
          Table<Character, String, Integer> table = makeTable();
          table.put('a', "one", 1);
          table.put('a', "two", 2);
          table.put('a', "three", 3);
          table.put('b', "four", 4);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SingletonImmutableMapWithUnhashableValueMapInterfaceTest.java

    public class SingletonImmutableMapWithUnhashableValueMapInterfaceTest
        extends RegularImmutableMapWithUnhashableValuesMapInterfaceTest {
      @Override
      protected Map<Integer, UnhashableObject> makePopulatedMap() {
        Unhashables unhashables = new Unhashables();
        return ImmutableMap.of(0, unhashables.e0());
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/RegularImmutableMapMapInterfaceTest.java

        extends AbstractImmutableMapMapInterfaceTest<String, Integer> {
      @Override
      protected Map<String, Integer> makeEmptyMap() {
        return ImmutableMap.of();
      }
    
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        return ImmutableMap.of("one", 1, "two", 2, "three", 3);
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "minus one";
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ReserializedImmutableMapMapInterfaceTest.java

    @GwtIncompatible // SerializableTester
    public class ReserializedImmutableMapMapInterfaceTest
        extends AbstractImmutableMapMapInterfaceTest<String, Integer> {
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        return SerializableTester.reserialize(ImmutableMap.of("one", 1, "two", 2, "three", 3));
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "minus one";
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ReserializedImmutableSortedMapMapInterfaceTest.java

    @GwtIncompatible // SerializableTester
    public class ReserializedImmutableSortedMapMapInterfaceTest
        extends AbstractImmutableSortedMapMapInterfaceTest<String, Integer> {
      @Override
      protected SortedMap<String, Integer> makePopulatedMap() {
        return SerializableTester.reserialize(ImmutableSortedMap.of("one", 1, "two", 2, "three", 3));
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "minus one";
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 17 01:34:55 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableMapWithBadHashesMapInterfaceTest.java

      @Override
      protected Map<Object, Integer> makeEmptyMap() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      protected Map<Object, Integer> makePopulatedMap() {
        Colliders colliders = new Colliders();
        return ImmutableMap.of(
            colliders.e0(), 0,
            colliders.e1(), 1,
            colliders.e2(), 2,
            colliders.e3(), 3);
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.4K bytes
    - Viewed (0)
Back to top