Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for comparisons (0.04 sec)

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 21:10:54 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                assertTrue(totalTime < 10_000_000L, "Null/empty password comparisons taking too long: " + totalTime + " ns");
            } finally {
                auth1.close();
                auth2.close();
                auth3.close();
            }
        }
    
        /**
         * Test that the constant-time comparison method is actually used internally.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 21:10:54 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMaker.java

     *
     * <p><b>Note:</b> by default, the returned map uses equality comparisons (the {@link Object#equals
     * equals} method) to determine equality for keys or values. However, if {@link #weakKeys} was
     * specified, the map uses identity ({@code ==}) comparisons instead for keys. Likewise, if {@link
     * #weakValues} was specified, the map uses identity comparisons for values.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

            assertFalse(CrawlerStatus.INITIALIZING.equals(CrawlerStatus.DONE));
            assertFalse(CrawlerStatus.RUNNING.equals(CrawlerStatus.DONE));
    
            // Null comparison
            assertFalse(CrawlerStatus.INITIALIZING.equals(null));
    
            // Different type comparison
            assertFalse(CrawlerStatus.INITIALIZING.equals("INITIALIZING"));
            assertFalse(CrawlerStatus.INITIALIZING.equals(0));
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. docs/en/docs/benchmarks.md

    But when checking benchmarks and comparisons you should keep the following in mind.
    
    ## Benchmarks and speed { #benchmarks-and-speed }
    
    When you check the benchmarks, it is common to see several tools of different types compared as equivalent.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/Fingerprint2011.java

     *
     * <p>Note to maintainers: This implementation relies on signed arithmetic being bit-wise equivalent
     * to unsigned arithmetic in all cases except:
     *
     * <ul>
     *   <li>comparisons (signed values can be negative)
     *   <li>division (avoided here)
     *   <li>shifting (right shift must be unsigned)
     * </ul>
     *
     * @author ******@****.*** (Kyle Maddison)
     * @author ******@****.*** (Geoff Pike)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  10. 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? = null
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top