- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for comparisons (0.06 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java
@SuppressWarnings({ "SelfEquals", // TODO(cpovirk): Consider using EqualsTester from Guava. "UndefinedEquals", // Comparisons of an object to itself *are* defined. }) public void testEquals_self() { assertTrue("An Object should be equal to itself.", collection.equals(collection)); } // Comparisons to null *are* defined. @SuppressWarnings("UndefinedEquals") public void testEquals_null() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 21:10:54 UTC 2025 - 2.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
throw new AssertionError(e); } } HashFunction getHashFunction() { return hashFn; } } // Use a constant seed for all of the benchmarks to ensure apples to apples comparisons. private static final int RANDOM_SEED = new Random().nextInt(); private byte[] testBytes; @BeforeExperiment void setUp() { testBytes = new byte[size];
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 3.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
throw new AssertionError(e); } } HashFunction getHashFunction() { return hashFn; } } // Use a constant seed for all of the benchmarks to ensure apples to apples comparisons. private static final int RANDOM_SEED = new Random().nextInt(); private byte[] testBytes; @BeforeExperiment void setUp() { testBytes = new byte[size];
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 3.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SetMultimap.java
* * <p>Since the value collections are sets, the behavior of a {@code SetMultimap} is not specified * if key or value objects already present in the multimap change in a manner that affects * {@code equals} comparisons. Use caution if mutable objects are used as keys or values in a {@code * SetMultimap}. * * <p><b>Warning:</b> Do not modify either a key <i>or a value</i> of a {@code SetMultimap} in a wayRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 4.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/SetMultimap.java
* * <p>Since the value collections are sets, the behavior of a {@code SetMultimap} is not specified * if key or value objects already present in the multimap change in a manner that affects * {@code equals} comparisons. Use caution if mutable objects are used as keys or values in a {@code * SetMultimap}. * * <p><b>Warning:</b> Do not modify either a key <i>or a value</i> of a {@code SetMultimap} in a wayRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 4.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt
private const val HEADER_WEB_SOCKET_EXTENSION = "Sec-WebSocket-Extensions" @Throws(IOException::class) fun parse(responseHeaders: Headers): WebSocketExtensions { // Note that this code does case-insensitive comparisons, even though the spec doesn't specify // whether extension tokens and parameters are case-insensitive or not. var compressionEnabled = false var clientMaxWindowBits: Int? = nullRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java
byte b = (byte) 0xFF; int value = b & 0xFF; assertEquals(255, value, "Byte to unsigned conversion should work"); // Test comparison operation assertTrue(value == 255, "Comparison should work correctly"); } /** * Encode a string as 16-bit little-endian Unicode */ private byte[] encodeUnicode(String s) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/DialectVersionTest.java
assertFalse(stringRep.isEmpty()); } @Test @DisplayName("Should handle version comparison") void testVersionComparison() { // Test equality assertEquals(DialectVersion.SMB311, DialectVersion.SMB311); assertNotEquals(DialectVersion.SMB1, DialectVersion.SMB311); // Test comparison assertTrue(DialectVersion.SMB1.compareTo(DialectVersion.SMB311) < 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorInternal.java
* * @param other the other resource locator to compare with * @return whether the paths share a common root * @throws CIFSException if an error occurs during comparison */ boolean overlaps(SmbResourceLocator other) throws CIFSException; /** * Internal: for testing only * * @param dr the DFS referral data to processRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceTest.java
import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Service} */ @NullUnmarked public class ServiceTest extends TestCase { /** Assert on the comparison ordering of the State enum since we guarantee it. */ public void testStateOrdering() { // List every valid (direct) state transition. assertLessThan(NEW, STARTING); assertLessThan(NEW, TERMINATED);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2K bytes - Viewed (0)