Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 554 for HashCode (0.05 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java

          return this.presentFeatures.equals(that.presentFeatures)
              && this.absentFeatures.equals(that.absentFeatures);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return presentFeatures.hashCode() * 31 + absentFeatures.hashCode();
      }
    
      @Override
      public String toString() {
        return "{TesterRequirements: present=" + presentFeatures + ", absent=" + absentFeatures + "}";
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                  @Override
                  public Set<Entry<String, String>> entrySet() {
                    return new EntrySet();
                  }
    
                  @Override
                  public int hashCode() {
                    return map.hashCode();
                  }
    
                  @Override
                  public boolean equals(@Nullable Object o) {
                    return map.equals(o);
                  }
    
                  @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. 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)
  4. okhttp/src/test/java/okhttp3/HeadersTest.kt

          Headers.Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        assertThat(headers2).isEqualTo(headers1)
        assertThat(headers2.hashCode()).isEqualTo(headers1.hashCode())
      }
    
      @Test fun headersNotEquals() {
        val headers1 =
          Headers.Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. compat/maven-model/src/test/java/org/apache/maven/model/DependencyTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code Dependency}.
     *
     */
    class DependencyTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Dependency().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new Dependency().equals(null));
    
            new Dependency().equals(new Dependency());
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. compat/maven-model/src/test/java/org/apache/maven/model/DistributionManagementTest.java

    /**
     * Tests {@code DistributionManagement}.
     *
     */
    class DistributionManagementTest {
    
        @Test
        void testHashCodeNullSafe() {
            new DistributionManagement().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new DistributionManagement().equals(null));
    
            new DistributionManagement().equals(new DistributionManagement());
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. compat/maven-model/src/test/java/org/apache/maven/model/ExclusionTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code Exclusion}.
     *
     */
    class ExclusionTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Exclusion().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new Exclusion().equals(null));
    
            new Exclusion().equals(new Exclusion());
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. compat/maven-model/src/test/java/org/apache/maven/model/PluginTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code Plugin}.
     *
     */
    class PluginTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Plugin().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new Plugin().equals(null));
    
            new Plugin().equals(new Plugin());
        }
    
        @Test
        void testEqualsIdentity() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. compat/maven-model/src/test/java/org/apache/maven/model/ProfileTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code Profile}.
     *
     */
    class ProfileTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Profile().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new Profile().equals(null));
    
            new Profile().equals(new Profile());
        }
    
        @Test
        void testEqualsIdentity() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top