Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 1,396 for putA (0.02 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/model/plugin/DefaultLifecycleBindingsInjector.java

                        if (existing != null) {
                            mergePlugin(existing, element, sourceDominant, context);
                        } else {
                            merged.put(key, element);
                            added.put(key, element);
                        }
                    }
    
                    if (!added.isEmpty()) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginArtifactsCache.java

        }
    
        @Override
        public CacheRecord put(Key key, List<Artifact> pluginArtifacts) {
            Objects.requireNonNull(pluginArtifacts, "pluginArtifacts cannot be null");
    
            assertUniqueKey(key);
    
            CacheRecord record = new CacheRecord(Collections.unmodifiableList(new ArrayList<>(pluginArtifacts)));
    
            cache.put(key, record);
    
            return record;
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

        TestMap map = new TestMap();
        map.put("foo", 1);
        assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2));
        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertThat(map.putIfAbsent("bar", 3)).isNull();
        assertEquals(Integer.valueOf(3), map.get("bar"));
      }
    
      public void testRemove() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertFalse(map.remove("foo", 2));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  4. internal/bpool/bpool.go

    		b = reedsolomon.AllocAligned(1, bp.wcap)[0][:bp.w]
    	}
    	return b
    }
    
    // Put returns the given Buffer to the BytePool.
    func (bp *BytePoolCap) Put(b []byte) {
    	if bp == nil {
    		return
    	}
    
    	if cap(b) != bp.wcap {
    		// someone tried to put back buffer which is not part of this buffer pool
    		// we simply don't put this back into pool, a modified buffer provided
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 3K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/curl/CurlResponseTest.java

            CurlResponse response = new CurlResponse();
            Map<String, List<String>> headers = new HashMap<>();
            headers.put("Content-Type", Arrays.asList("application/json"));
            headers.put("CONTENT-LENGTH", Arrays.asList("100"));
            headers.put("accept-encoding", Arrays.asList("gzip"));
            response.setHeaders(headers);
    
            // All header access should be case-insensitive
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

      }
    
      public void testUpdates() {
        cache.put(key, "1");
        // simultaneous update for same key, some null, some non-null
        doParallelCacheOp(
            count,
            n -> {
              cache.asMap().compute(key, (k, v) -> n % 2 == 0 ? v + delimiter + n : null);
            });
        assertThat(cache.size()).isAtMost(1);
      }
    
      public void testCompute() {
        cache.put(key, "1");
        // simultaneous deletion
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            for (int i = 0; i < num; i++) {
                hmap.put(String.valueOf(i), null);
            }
            System.out.println("HashMap.put:" + (System.currentTimeMillis() - start));
    
            start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                amap.put(String.valueOf(i), null);
            }
            System.out.println("ArrayMap.put:" + (System.currentTimeMillis() - start));
    
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

      protected Map<String, Collection<Integer>> makePopulatedMap() {
        TreeMultimap<String, Integer> multimap = createMultimap();
        multimap.put("f", 1);
        multimap.put("f", 2);
        multimap.put("g", 3);
        multimap.put("h", 4);
        return multimap.asMap().subMap("e", "p");
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "a";
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java

    import com.google.common.collect.testing.features.MapFeature;
    import java.util.List;
    import java.util.Map.Entry;
    import org.junit.Ignore;
    
    /**
     * Testers for {@link ListMultimap#put(Object, Object)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        sublist.clear();
        assertTrue(sublist.isEmpty());
        multimap.put("foo", 6);
    
        assertThrows(ConcurrentModificationException.class, () -> sublist.isEmpty());
      }
    
      public void testCreateFromMultimap() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 1);
        multimap.put("foo", 3);
        multimap.put("bar", 2);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.6K bytes
    - Click Count (0)
Back to Top