Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 582 for HashCode (0.05 sec)

  1. 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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/AbstractInvocationHandler.java

        return super.equals(obj);
      }
    
      /**
       * By default delegates to {@link Object#hashCode}. The dynamic proxies' {@code hashCode()} will
       * delegate to this method. Subclasses can override this method to provide custom equality.
       */
      @Override
      public int hashCode() {
        return super.hashCode();
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Predicates.java

            return f.equals(that.f) && p.equals(that.p);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return f.hashCode() ^ p.hashCode();
        }
    
        @Override
        public String toString() {
          // TODO(cpovirk): maybe make this look like the method call does ("Predicates.compose(...)")
          return p + "(" + f + ")";
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Objects.java

       * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a
       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
       * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Jul 28 22:51:26 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

        for (E element : getOrderedElements()) {
          expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode());
        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

        assertEquals(control("foo", 1).hashCode(), entry("foo", 1).hashCode());
        assertEquals(control("bar", 2).hashCode(), entry("bar", 2).hashCode());
      }
    
      public void testHashCodeNull() {
        assertEquals(control(NK, 1).hashCode(), entry(NK, 1).hashCode());
        assertEquals(control("bar", NV).hashCode(), entry("bar", NV).hashCode());
        assertEquals(control(NK, NV).hashCode(), entry(NK, NV).hashCode());
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

            HandleGuid guid2 = new HandleGuid(uuid);
            HandleGuid guid3 = new HandleGuid();
    
            assertEquals(guid1, guid2);
            assertEquals(guid1.hashCode(), guid2.hashCode());
            assertNotEquals(guid1, guid3);
            assertNotEquals(guid1.hashCode(), guid3.hashCode());
    
            assertNotEquals(guid1, null);
            assertNotEquals(guid1, "not a guid");
        }
    
        @Test
        public void testHandleGuidToString() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java

                    ids.add(artifact.getVersion());
                }
    
                this.hashCode =
                        31 * files.hashCode() + 31 * ids.hashCode() + 31 * timestamps.hashCode() + 31 * sizes.hashCode();
            }
    
            @Override
            public int hashCode() {
                return hashCode;
            }
    
            @Override
            public boolean equals(Object o) {
                if (o == this) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Functions.java

            return f.equals(that.f) && g.equals(that.g);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return f.hashCode() ^ g.hashCode();
        }
    
        @Override
        public String toString() {
          // TODO(cpovirk): maybe make this look like the method call does ("Functions.compose(...)")
          return g + "(" + f + ")";
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

        }
    
        /**
         * Test of hashCode method, of class SmbShareInfo.
         */
        @Test
        void testHashCode() {
            SmbShareInfo instance1 = new SmbShareInfo("SHARE1", 0, "remark1");
            SmbShareInfo instance2 = new SmbShareInfo("SHARE1", 1, "remark2");
            SmbShareInfo instance3 = new SmbShareInfo("SHARE2", 0, "remark1");
    
            assertEquals(instance1.hashCode(), instance2.hashCode());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top