Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 523 for putAll (0.07 sec)

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

      }
    
      // Null support depends on the underlying table and function.
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      @Override
      public void testNullPointerInstance() {}
    
      // put() and putAll() aren't supported.
      @Override
      public void testPut() {
        assertThrows(UnsupportedOperationException.class, () -> table.put("foo", 1, 'a'));
        assertSize(0);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

            ImmutableBiMap.Builder<Object, Object> builder = ImmutableBiMap.builder();
            builder.putAll(sourceMap);
            return builder.buildOrThrow();
          }
        },
        BUILDER_PUT_ALL_ENTRIES {
          @Override
          public ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries) {
            return ImmutableBiMap.builder().putAll(entries).buildOrThrow();
          }
        },
        FORCE_JDK {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            newMap.putAll(map);
            return newMap;
          }
        },
        MapMakerStrongKeysWeakValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap();
            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/BaseCIFSTest.java

            return new CIFSConfigContextWrapper(ctx, cfg);
        }
    
    
        @Before
        public void setUp () throws Exception {
            Properties props = new Properties();
            props.putAll(this.properties);
            this.context = AllTests.getCachedContext(this.name, props);
        }
    
    
        @After
        public void tearDown () throws Exception {
            System.gc();
            System.gc();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        multimap.put("tree", 4);
        multimap.put("tree", 0);
        return multimap;
      }
    
      public void testToString() {
        SetMultimap<String, Integer> multimap = create();
        multimap.putAll("bar", asList(3, 1, 2));
        multimap.putAll("foo", asList(2, 3, 1, -1, 4));
        assertEquals("{bar=[1, 2, 3], foo=[-1, 1, 2, 3, 4]}", multimap.toString());
      }
    
      public void testOrderedGet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java

                if (sourceDominant) {
                    merged.putAll(target.getProperties());
                    putAll(merged, source.getProperties(), CHILD_DIRECTORY_PROPERTY);
                } else {
                    putAll(merged, source.getProperties(), CHILD_DIRECTORY_PROPERTY);
                    merged.putAll(target.getProperties());
                }
                builder.properties(merged);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertThrows(UnsupportedOperationException.class, () -> multimapView.put("baz", 3));
        assertThrows(
            UnsupportedOperationException.class, () -> multimapView.putAll("baz", singleton(3)));
        assertThrows(UnsupportedOperationException.class, () -> multimapView.putAll(multimap));
        assertThrows(
            UnsupportedOperationException.class,
            () -> multimapView.replaceValues("foo", Collections.<Integer>emptySet()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SynchronizedTableTest.java

          assertTrue(Thread.holdsLock(mutex));
          return delegate.put(rowKey, columnKey, value);
        }
    
        @Override
        public void putAll(Table<? extends R, ? extends C, ? extends V> table) {
          assertTrue(Thread.holdsLock(mutex));
          delegate.putAll(table);
        }
    
        @Override
        public @Nullable V remove(Object rowKey, Object columnKey) {
          assertTrue(Thread.holdsLock(mutex));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeRangeMap.java

        @Override
        public void putAll(RangeMap<K, ? extends V> rangeMap) {
          if (rangeMap.asMapOfRanges().isEmpty()) {
            return;
          }
          Range<K> span = rangeMap.span();
          checkArgument(
              subRange.encloses(span),
              "Cannot putAll rangeMap with span %s into a subRangeMap(%s)",
              span,
              subRange);
          TreeRangeMap.this.putAll(rangeMap);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        // Test #putAll(K, Collection<V>)
        try {
          multimap.putAll(sampleKey, sampleValueAsCollection);
          fail("putAll(K, Iterable) succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #putAll(Multimap<K, V>)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top