- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 335 for copyTo0 (0.22 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava/src/com/google/common/cache/AbstractCache.java
K castKey = (K) key; V value = getIfPresent(key); if (value != null) { result.put(castKey, value); } } } return ImmutableMap.copyOf(result); } /** * @since 11.0 */ @Override public void put(K key, V value) { throw new UnsupportedOperationException(); } /** * @since 12.0 */ @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 9.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertThat(map.entrySet()).isEqualTo(newMap.entrySet()); assertThat(map.keySet()).isEqualTo(newMap.keySet()); Set<Object> expectedValues = ImmutableSet.of(one); Set<Object> actualValues = ImmutableSet.copyOf(map.values()); assertThat(actualValues).isEqualTo(expectedValues); } /** Lookups on the map view shouldn't impact the recency queue. */ public void testAsMapRecency() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 13.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 19.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
assertThat(map.entrySet()).isEqualTo(newMap.entrySet()); assertThat(map.keySet()).isEqualTo(newMap.keySet()); Set<Object> expectedValues = ImmutableSet.of(one); Set<Object> actualValues = ImmutableSet.copyOf(map.values()); assertThat(actualValues).isEqualTo(expectedValues); } /** Lookups on the map view shouldn't impact the recency queue. */ public void testAsMapRecency() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 13.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
for (int bytes = 0; bytes < totalBytes; bytes++) { byte[] bb = new byte[bytes]; hashCode.writeBytesTo(bb, 0, bb.length); assertThat(bb).isEqualTo(Arrays.copyOf(hashBytes, bytes)); } } private static class ExpectedHashCode { final byte[] bytes; final int asInt; final Long asLong; // null means that asLong should throw an exceptionCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteStreams.java
return new byte[0]; } byte[] result = bufs.remove(); if (result.length == totalLen) { return result; } int remaining = totalLen - result.length; result = Arrays.copyOf(result, totalLen); while (remaining > 0) { byte[] buf = bufs.remove(); int bytesToCopy = min(remaining, buf.length); int resultOffset = totalLen - remaining;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 31.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
byte[] keyCopy = null; try { // Get the key and create a defensive copy for SecretKeySpec key = encrypt ? getEncryptionKey() : getDecryptionKey(); keyCopy = Arrays.copyOf(key, key.length); // Validate key length matches expected cipher requirements if (keyCopy.length != keyLength) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheBuilderSpec.java
if (!cacheBuilderSpecification.isEmpty()) { for (String keyValuePair : KEYS_SPLITTER.split(cacheBuilderSpecification)) { List<String> keyAndValue = ImmutableList.copyOf(KEY_VALUE_SPLITTER.split(keyValuePair)); checkArgument(!keyAndValue.isEmpty(), "blank key-value pair"); checkArgument( keyAndValue.size() <= 2,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilderSpec.java
if (!cacheBuilderSpecification.isEmpty()) { for (String keyValuePair : KEYS_SPLITTER.split(cacheBuilderSpecification)) { List<String> keyAndValue = ImmutableList.copyOf(KEY_VALUE_SPLITTER.split(keyValuePair)); checkArgument(!keyAndValue.isEmpty(), "blank key-value pair"); checkArgument( keyAndValue.size() <= 2,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
assertNotNull(stream); byte[] buffer = new byte[1024]; int bytesRead = stream.read(buffer); assertEquals(data.length, bytesRead); assertArrayEquals(data, Arrays.copyOf(buffer, bytesRead)); } } @Test public void testGetContentAsStreamWithoutCache() { CurlResponse response = new CurlResponse(); try {
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0)