Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 585 for hashCode (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CipherSuiteTest.kt

        assertThat(cs.hashCode(), cs.toString())
          .isEqualTo(System.identityHashCode(cs))
      }
    
      @Test
      fun hashCode_usesIdentityHashCode_regularCase() {
        // This one's javaName matches the identifier.
        val cs = CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA256
        assertThat(cs.hashCode(), cs.toString())
          .isEqualTo(System.identityHashCode(cs))
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

          }
        };
      }
    
      /** An implementation for {@link Set#hashCode()}. */
      static int hashCodeImpl(Set<?> s) {
        int hashCode = 0;
        for (Object o : s) {
          hashCode += o != null ? o.hashCode() : 0;
    
          hashCode = ~~hashCode;
          // Needed to deal with unusual integer overflow in GWT.
        }
        return hashCode;
      }
    
      /** An implementation for {@link Set#equals(Object)}. */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/TransferResourceIdentifier.java

    import org.eclipse.aether.transfer.TransferResource;
    
    /**
     * Immutable identifier of a {@link TransferResource}.
     * The {@link TransferResource} is not immutable and does not implement {@code Objects#equals} and {@code Objects#hashCode} methods,
     * making it not very suitable for usage in collections.
     */
    record TransferResourceIdentifier(
            String repositoryId,
            String repositoryUrl,
            String resourceName,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/entity/ParamMap.java

            return parent.entrySet();
        }
    
        @Override
        public boolean equals(final Object o) {
            return parent.equals(o);
        }
    
        @Override
        public int hashCode() {
            return parent.hashCode();
        }
    
        @Override
        public V getOrDefault(final Object key, final V defaultValue) {
            final V value = parent.get(key);
            if (value != null) {
                return value;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

      }
    
      private static class Foo implements Comparable<Foo> {
        final Integer value;
    
        Foo(int value) {
          this.value = value;
        }
    
        @Override
        public int hashCode() {
          return value.hashCode();
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          return (o instanceof Foo) && ((Foo) o).value.equals(value);
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Interners.java

          this.interner = interner;
        }
    
        @Override
        public E apply(E input) {
          return interner.intern(input);
        }
    
        @Override
        public int hashCode() {
          return interner.hashCode();
        }
    
        @Override
        public boolean equals(@Nullable Object other) {
          if (other instanceof InternerFunction) {
            InternerFunction<?> that = (InternerFunction<?>) other;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractTable.java

        }
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        return Tables.equalsImpl(this, obj);
      }
    
      @Override
      public int hashCode() {
        return cellSet().hashCode();
      }
    
      /** Returns the string representation {@code rowMap().toString()}. */
      @Override
      public String toString() {
        return rowMap().toString();
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. compat/maven-model/src/test/java/org/apache/maven/model/ActivationOSTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code ActivationOS}.
     *
     */
    class ActivationOSTest {
    
        @Test
        void testHashCodeNullSafe() {
            new ActivationOS().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new ActivationOS().equals(null));
    
            new ActivationOS().equals(new ActivationOS());
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. compat/maven-model/src/test/java/org/apache/maven/model/PluginConfigurationTest.java

    /**
     * Tests {@code PluginConfiguration}.
     *
     */
    class PluginConfigurationTest {
    
        @Test
        void testHashCodeNullSafe() {
            new PluginConfiguration().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new PluginConfiguration().equals(null));
    
            new PluginConfiguration().equals(new PluginConfiguration());
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. compat/maven-model/src/test/java/org/apache/maven/model/ReportPluginTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code ReportPlugin}.
     *
     */
    class ReportPluginTest {
    
        @Test
        void testHashCodeNullSafe() {
            new ReportPlugin().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new ReportPlugin().equals(null));
    
            new ReportPlugin().equals(new ReportPlugin());
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top