Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 491 for hashCodes (0.04 sec)

  1. src/test/java/jcifs/smb/SIDTest.java

            @Test
            @DisplayName("equals and hashCode for equal and non-equal SIDs")
            void testEqualsAndHashCode() throws Exception {
                SID a1 = new SID("S-1-5-21-1-2-3-4");
                SID a2 = new SID("S-1-5-21-1-2-3-4");
                SID b = new SID("S-1-5-21-1-2-3-5");
    
                assertEquals(a1, a2);
                assertEquals(a1.hashCode(), a2.hashCode());
                assertNotEquals(a1, b);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/sso/SsoResponseTypeTest.java

        public void test_hashCode() {
            // Test hashCode consistency
            int metadataHashCode = SsoResponseType.METADATA.hashCode();
            int logoutHashCode = SsoResponseType.LOGOUT.hashCode();
    
            // Hash code should be consistent for the same object
            assertEquals(metadataHashCode, SsoResponseType.METADATA.hashCode());
            assertEquals(logoutHashCode, SsoResponseType.LOGOUT.hashCode());
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/ObjectUtil.java

         * Returns the hash code of the specified object, or 0 if the object is null.
         *
         * @param obj the object
         * @return the hash code or 0
         */
        public static int hashCode(final Object obj) {
            return obj == null ? 0 : obj.hashCode();
        }
    
        /**
         * Returns the string representation of the specified object, or null if the object is null.
         *
         * @param obj the object
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstallerRequest.java

                    return o instanceof DefaultArtifactInstallerRequest that && Objects.equals(artifacts, that.artifacts);
                }
    
                @Override
                public int hashCode() {
                    return Objects.hashCode(artifacts);
                }
    
                @Override
                public String toString() {
                    return "ArtifactInstallerRequest[" + "artifacts=" + artifacts + ']';
                }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

         */
        public Path getPath() {
            return path;
        }
    
        @Override
        public String toString() {
            return getLocation();
        }
    
        @Override
        public int hashCode() {
            return hashCode;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
            if (obj == null) {
                return false;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 18:51:29 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/NbtAddress.java

        }
    
        /**
         * Returns a hashcode for this IP address. The hashcode comes from the IP address
         * and is not generated from the string representation. So because NetBIOS nodes
         * can have many names, all names associated with an IP will have the same
         * hashcode.
         */
    
        @Override
        public int hashCode() {
            return address;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/AnyValue.kt

      val bytes: ByteString,
    ) {
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + tagClass
        result = 31 * result + tag.toInt()
        result = 31 * result + (if (constructed) 0 else 1)
        result = 31 * result + length.toInt()
        result = 31 * result + bytes.hashCode()
        return result
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Cut.java

          } catch (ClassCastException wastNotComparableToOurType) {
            return false;
          }
        }
        return false;
      }
    
      // Prevent "missing hashCode" warning by explicitly forcing subclasses implement it
      @Override
      public abstract int hashCode();
    
      /*
       * The implementation neither produces nor consumes any non-null instance of type C, so
       * casting the type parameter is safe.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

          }
          // The interface could be package-private or private.
          // filter out equals/hashCode/toString
          if (method.getName().equals("equals")
              && method.getParameterTypes().length == 1
              && method.getParameterTypes()[0] == Object.class) {
            continue;
          }
          if (method.getName().equals("hashCode") && method.getParameterTypes().length == 0) {
            continue;
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/MIENameTest.java

            assertEquals(expected, parsed, "Parsed object should equal expected");
            assertEquals(name, parsed.toString(), "toString should return the name");
            assertEquals(testOid().hashCode(), parsed.hashCode(), "hashCode should derive from OID");
        }
    
        @Test
        @DisplayName("Parses empty name length (NAME_LEN=0) as empty string")
        void parseEmptyName() {
            // Arrange
            String name = "";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top