Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 492 for hashcode (0.05 sec)

  1. android/guava/src/com/google/common/hash/HashCode.java

       * byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this
       * array or else you will break the immutability contract of {@code HashCode}.
       */
      byte[] getBytesInternal() {
        return asBytes();
      }
    
      /**
       * Returns whether this {@code HashCode} and that {@code HashCode} have the same value, given that
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

            assertNotNull(result);
        }
    
        // Test hashCode method
        public void test_hashCode() {
            // Test that hashCode returns consistent value
            int hashCode1 = crawlerEngineClient.hashCode();
            int hashCode2 = crawlerEngineClient.hashCode();
            assertEquals(hashCode1, hashCode2);
        }
    
        // Test equals method
        public void test_equals() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

        }
    
        public void test_hashCode() {
            // Test hashCode consistency
            DictionaryExpiredException exception = new DictionaryExpiredException();
            int hashCode1 = exception.hashCode();
            int hashCode2 = exception.hashCode();
    
            assertEquals(hashCode1, hashCode2);
        }
    
        public void test_toString() {
            // Test toString method
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/HashingTest.java

        Random random = new Random(7);
        List<HashCode> hashCodes = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
          hashCodes.add(HashCode.fromLong(random.nextLong()));
        }
        HashCode hashCode1 = Hashing.combineOrdered(hashCodes);
        Collections.shuffle(hashCodes, random);
        HashCode hashCode2 = Hashing.combineOrdered(hashCodes);
    
        assertFalse(hashCode1.equals(hashCode2));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (2)
  5. guava-tests/test/com/google/common/hash/HashCodeTest.java

        bytesB[4] = (byte) 0xef;
    
        HashCode hashCodeA = HashCode.fromBytes(bytesA);
        HashCode hashCodeB = HashCode.fromBytes(bytesB);
    
        // They aren't equal...
        assertFalse(hashCodeA.equals(hashCodeB));
    
        // But they still have the same Object#hashCode() value.
        // Technically not a violation of the equals/hashCode contract, but...?
        assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

          dummy += Objects.hashCode(S0, S1, S2, S3);
        }
        return dummy;
      }
    
      @Benchmark
      int hashString_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(S0, S1, S2, S3, S4);
        }
        return dummy;
      }
    
      @Benchmark
      int hashMixed_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(I2, S1, D1, S2, I0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/HashingTest.java

        Random random = new Random(7);
        List<HashCode> hashCodes = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
          hashCodes.add(HashCode.fromLong(random.nextLong()));
        }
        HashCode hashCode1 = Hashing.combineOrdered(hashCodes);
        Collections.shuffle(hashCodes, random);
        HashCode hashCode2 = Hashing.combineOrdered(hashCodes);
    
        assertFalse(hashCode1.equals(hashCode2));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        bytesB[4] = (byte) 0xef;
    
        HashCode hashCodeA = HashCode.fromBytes(bytesA);
        HashCode hashCodeB = HashCode.fromBytes(bytesB);
    
        // They aren't equal...
        assertFalse(hashCodeA.equals(hashCodeB));
    
        // But they still have the same Object#hashCode() value.
        // Technically not a violation of the equals/hashCode contract, but...?
        assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  9. api/maven-api-core/src/test/java/org/apache/maven/api/services/RequestImplementationTest.java

                    .repositories(repositories1)
                    .build();
    
            // Test equals and hashCode
            assertEquals(request1, request2);
            assertEquals(request1.hashCode(), request2.hashCode());
            assertNotEquals(request1, request3);
    
            // Test toString
            String toString = request1.toString();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SecurityBlobTest.java

            assertEquals("deadbeef", blob.toString(), "toString() should reflect underlying content");
            assertEquals(data.hashCode(), blob.hashCode(), "hashCode should equal the array's hashCode");
        }
    
        // Validates equals() returns true for same-sized, equal-content blobs
        @Test
        @DisplayName("equals: identical content and size -> true")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top