- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 1,007 for put (0.01 seconds)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexer.java
private static final Map<String, String> ENTITIES = new HashMap<String, String>(); static { ENTITIES.put("amp", "&"); ENTITIES.put("lt", "<"); ENTITIES.put("gt", ">"); ENTITIES.put("quot", "\""); ENTITIES.put("apos", "'"); } private final JavadocScanner scanner; BasicJavadocLexer(JavadocScanner scanner) { this.scanner = scanner;
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Aug 19 15:07:24 GMT 2024 - 7.1K bytes - Click Count (0) -
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) -
guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java
TreeMultimap.create(StringLength.COMPARATOR, DECREASING_INT_COMPARATOR); multimap.put("google", 2); multimap.put("google", 6); multimap.put(null, 3); multimap.put(null, 1); multimap.put(null, 7); multimap.put("tree", 0); multimap.put("tree", null); return multimap; } /** Test that a TreeMultimap created from another uses the natural ordering. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.4K bytes - Click Count (0) -
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) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
assertTrue(multimap().put(k0(), v3())); assertGet(k0(), v0(), v3()); assertEquals(size + 1, multimap().size()); } @MapFeature.Require(SUPPORTS_PUT) public void testPutTwoElements() { int size = getNumElements(); List<V> values = copyToList(multimap().get(k0())); assertTrue(multimap().put(k0(), v1())); assertTrue(multimap().put(k0(), v2())); values.add(v1());Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 7.3K bytes - Click Count (0) -
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) -
android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
Map<String, Integer> underlying = new LinkedHashMap<>(); underlying.put("a", 1); underlying.put("b", 2); underlying.put("c", 3); underlying.put("d", 4); underlying.put("e", 5); underlying.put("f", 6); underlying.put("g", 7); Map<String, String> map = transformValues(underlying, Functions.toStringFunction()); map.remove("a");
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 12.4K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmServiceTest.java
HashMap<String, ChecksumAlgorithmFactory> result = new HashMap<>(); result.put(Sha512ChecksumAlgorithmFactory.NAME, new Sha512ChecksumAlgorithmFactory()); result.put(Sha256ChecksumAlgorithmFactory.NAME, new Sha256ChecksumAlgorithmFactory()); result.put(Sha1ChecksumAlgorithmFactory.NAME, new Sha1ChecksumAlgorithmFactory()); result.put(Md5ChecksumAlgorithmFactory.NAME, new Md5ChecksumAlgorithmFactory()); return result;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 26 11:31:00 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
HashMap<Integer, Integer> utf8Lengths = new HashMap<>(); utf8Lengths.put(0x00, 1); utf8Lengths.put(0x7f, 1); utf8Lengths.put(0x80, 2); utf8Lengths.put(0x7ff, 2); utf8Lengths.put(0x800, 3); utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT - 1, 3); utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT, 4); utf8Lengths.put(MAX_CODE_POINT, 4);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 12.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/HashMultimapTest.java
multimap.put("foo", 1); multimap.put("bar", 2); multimap.put("foo", 3); assertEquals(ImmutableSet.of(1, 3), multimap.get("foo")); assertEquals(2, multimap.expectedValuesPerKey); } public void testCreateFromMultimap() { HashMultimap<String, Integer> multimap = HashMultimap.create(); multimap.put("foo", 1); multimap.put("bar", 2); multimap.put("foo", 3);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.4K bytes - Click Count (0)