Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getValueNotInPopulatedMap (0.18 sec)

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

       *
       * @return a value.
       * @throws UnsupportedOperationException if it's not possible to make a value that will not be
       *     found in the map.
       */
      protected abstract V getValueNotInPopulatedMap() throws UnsupportedOperationException;
    
      /**
       * Constructor that assigns {@code supportsIteratorRemove} the same value as {@code
       * supportsRemove}.
       */
      protected MapInterfaceTest(
    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

       *
       * @return a value.
       * @throws UnsupportedOperationException if it's not possible to make a value that will not be
       *     found in the map.
       */
      protected abstract V getValueNotInPopulatedMap() throws UnsupportedOperationException;
    
      /**
       * Constructor that assigns {@code supportsIteratorRemove} the same value as {@code
       * supportsRemove}.
       */
      protected MapInterfaceTest(
    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. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

        return sortedMap;
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() throws UnsupportedOperationException {
        return "minus one";
      }
    
      @Override
      protected Integer getValueNotInPopulatedMap() throws UnsupportedOperationException {
        return -1;
      }
    
      @J2ktIncompatible // https://youtrack.jetbrains.com/issue/KT-58242/ undefined behavior (crash)
      @Override
      public void testContainsKey() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

        return multimap.asMap().subMap("e", "p");
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "a";
      }
    
      @Override
      protected Collection<Integer> getValueNotInPopulatedMap() {
        return singleton(-2);
      }
    
      @Override
      public void testEntrySetRemoveAllNullFromEmpty() {
        try {
          super.testEntrySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

        Entry<K, V> firstEntry = iterator.next();
        Entry<K, V> secondEntry = iterator.next();
        K key = secondEntry.getKey();
        SortedMap<K, V> subMap = map.tailMap(key);
        V value = getValueNotInPopulatedMap();
        subMap.put(key, value);
        assertEquals(secondEntry.getValue(), value);
        assertEquals(map.get(key), value);
        assertThrows(IllegalArgumentException.class, () -> subMap.put(firstEntry.getKey(), value));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

              supportsIteratorRemove);
        }
    
        @Override
        protected String getKeyNotInPopulatedMap() {
          return "four";
        }
    
        @Override
        protected Integer getValueNotInPopulatedMap() {
          return 4;
        }
      }
    
      abstract static class RowTests extends MapTests {
        RowTests(
            boolean allowsNullValues,
            boolean supportsPut,
            boolean supportsRemove,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/TableCollectionTest.java

              supportsIteratorRemove);
        }
    
        @Override
        protected String getKeyNotInPopulatedMap() {
          return "four";
        }
    
        @Override
        protected Integer getValueNotInPopulatedMap() {
          return 4;
        }
      }
    
      abstract static class RowTests extends MapTests {
        RowTests(
            boolean allowsNullValues,
            boolean supportsPut,
            boolean supportsRemove,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        super(false, true, false, true, true);
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() throws UnsupportedOperationException {
        return "z";
      }
    
      @Override
      protected String getValueNotInPopulatedMap() throws UnsupportedOperationException {
        return "26";
      }
    
      /** Helper assertion comparing two maps */
      private void assertMapsEqual(Map<?, ?> expected, Map<?, ?> map) {
        assertEquals(expected, map);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

      }
    
      @Override
      protected String getKeyNotInPopulatedMap() throws UnsupportedOperationException {
        return "z";
      }
    
      @Override
      protected String getValueNotInPopulatedMap() throws UnsupportedOperationException {
        return "26";
      }
    
      /** Helper assertion comparing two maps */
      private void assertMapsEqual(Map<?, ?> expected, Map<?, ?> map) {
    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