Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 266 for hashcode (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt

          other.localCertificates == localCertificates
    
      override fun hashCode(): Int {
        var result = 17
        result = 31 * result + tlsVersion.hashCode()
        result = 31 * result + cipherSuite.hashCode()
        result = 31 * result + peerCertificates.hashCode()
        result = 31 * result + localCertificates.hashCode()
        return result
      }
    
      override fun toString(): String {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Apr 05 09:48:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/misc/Tuple3.java

        }
    
        @Override
        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + ((value1 == null) ? 0 : value1.hashCode());
            result = prime * result + ((value2 == null) ? 0 : value2.hashCode());
            result = prime * result + ((value3 == null) ? 0 : value3.hashCode());
            return result;
        }
    
        @Override
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java

            .addEqualityGroup(getSubjectGenerator().create())
            .testEquals();
      }
    
      public void testHashCodeMatchesEntrySet() {
        assertEquals(getMultiset().entrySet().hashCode(), getMultiset().hashCode());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testEqualsMultisetWithNullValue() {
        new EqualsTester()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

              !item.equals(NotAnInstance.EQUAL_TO_NOTHING));
          assertTrue(item + " must be Object#equals to itself", item.equals(item));
          assertEquals(
              "the Object#hashCode of " + item + " must be consistent",
              item.hashCode(),
              item.hashCode());
          if (!(item instanceof String)) {
            assertTrue(
                item + " must not be Object#equals to its Object#toString representation",
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SecurityBlob.java

            } catch (final Throwable e) {
                return false;
            }
        }
    
        /*
         * (non-Javadoc)
         *
         * @see java.lang.Object#hashCode()
         */
        @Override
        public int hashCode() {
            return this.b.hashCode();
        }
    
        /*
         * (non-Javadoc)
         *
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top