Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 557 for hashCode (0.06 sec)

  1. guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be equal to the Object#hashCode", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
      public void testObjectWhichIsEqualButChangesClass() {
        ObjectWhichIsEqualButChangesClass orig = new ObjectWhichIsEqualButChangesClass();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

                      return runnable.equals(that.runnable);
                    }
                    return false;
                  }
    
                  @Override
                  public int hashCode() {
                    return runnable.hashCode();
                  }
                };
              }
            });
      }
    
      public void testFailsToForwardEquals() {
        tester.includingEquals();
        assertFailure(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

    public class BaseComparable implements Comparable<BaseComparable>, Serializable {
      private final String s;
    
      public BaseComparable(String s) {
        this.s = s;
      }
    
      @Override
      public int hashCode() { // delegate to 's'
        return s.hashCode();
      }
    
      @Override
      public boolean equals(@Nullable Object other) {
        if (other == null) {
          return false;
        } else if (other instanceof BaseComparable) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 20 11:19:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Table.java

        /**
         * Returns the hash code of this cell.
         *
         * <p>The hash code of a table cell is equal to {@link Objects#hashCode}{@code (e.getRowKey(),
         * e.getColumnKey(), e.getValue())}.
         */
        @Override
        int hashCode();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MapDifference.java

         */
        @Override
        boolean equals(@CheckForNull Object other);
    
        /**
         * The hash code equals the value {@code Arrays.asList(leftValue(), rightValue()).hashCode()}.
         */
        @Override
        int hashCode();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 04 13:28:27 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Cookie.kt

      override fun hashCode(): Int {
        var result = 17
        result = 31 * result + name.hashCode()
        result = 31 * result + value.hashCode()
        result = 31 * result + expiresAt.hashCode()
        result = 31 * result + domain.hashCode()
        result = 31 * result + path.hashCode()
        result = 31 * result + secure.hashCode()
        result = 31 * result + httpOnly.hashCode()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProvider.java

        //                                                                      ==============
        @Override
        public String toString() {
            final String hash = Integer.toHexString(hashCode());
            return DfTypeUtil.toClassTitle(this) + ":{acceptCookieLocale=" + isAcceptCookieLocale() + "}@" + hash;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/PathSource.java

        }
    
        @Override
        public boolean equals(Object o) {
            return this == o || o.getClass() == getClass() && Objects.equals(path, ((PathSource) o).path);
        }
    
        @Override
        public int hashCode() {
            return Objects.hash(path);
        }
    
        @Override
        public String toString() {
            return "PathSource[" + "location='" + location + '\'' + ", " + "path=" + path + ']';
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Sep 18 11:42:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/OrArtifactFilterTest.java

            OrArtifactFilter filter2 = new OrArtifactFilter(Arrays.asList(newSubFilter()));
    
            assertFalse(filter1.equals(null));
            assertTrue(filter1.equals(filter1));
            assertEquals(filter1.hashCode(), filter1.hashCode());
    
            assertFalse(filter1.equals(filter2));
            assertFalse(filter2.equals(filter1));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java

            addScopeInternal(scope);
        }
    
        public String getScope() {
            return scope;
        }
    
        @Override
        public int hashCode() {
            int hash = 17;
    
            hash = hash * 31 + (scope != null ? scope.hashCode() : 0);
    
            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top