- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for entryCopy (0.06 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
Entry<K, V> entry = iterator.next(); Entry<K, V> entryCopy = mapEntry(entry.getKey(), entry.getValue()); iterator.remove(); assertEquals(initialSize - 1, map.size()); // Use "entryCopy" instead of "entry" because "entry" might be invalidated after // iterator.remove(). assertFalse(entrySet.contains(entryCopy)); assertInvariants(map);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
Entry<K, V> entry = iterator.next(); Entry<K, V> entryCopy = mapEntry(entry.getKey(), entry.getValue()); iterator.remove(); assertEquals(initialSize - 1, map.size()); // Use "entryCopy" instead of "entry" because "entry" might be invalidated after // iterator.remove(). assertFalse(entrySet.contains(entryCopy)); assertInvariants(map);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
} // Simple heuristic based on data entropy // In practice, this would be more sophisticated int uniqueBytes = countUniqueBytes(data); double entropy = (double) uniqueBytes / 256.0; // Estimate compression ratio based on entropy // Lower entropy = better compression return 0.3 + (entropy * 0.6); // Range from 30% to 90% } @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
-1 """.trimIndent() val entryBody = "abc" val journalBody = """libcore.io.DiskLruCache 1 201105 2 CLEAN $urlKey ${entryMetadata.length} ${entryBody.length} """ fileSystem.createDirectory(cache.directoryPath) writeFile(cache.directoryPath, "$urlKey.0", entryMetadata) writeFile(cache.directoryPath, "$urlKey.1", entryBody)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 03 17:41:45 UTC 2025 - 116.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
uniqueCounters.add(bytesToHex(counter)); } // All nonces should be unique (high entropy from SecureRandom) assertEquals(sampleSize, uniqueCounters.size(), "All nonces should have unique values"); // Verify that nonces have good entropy (not predictable) // With SecureRandom + counter XOR, they should all be different Set<String> uniqueNonces = new HashSet<>();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0)