Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 557 for hashCode (0.05 sec)

  1. compat/maven-model/src/test/java/org/apache/maven/model/PluginExecutionTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code PluginExecution}.
     *
     */
    class PluginExecutionTest {
    
        @Test
        void testHashCodeNullSafe() {
            new PluginExecution().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new PluginExecution().equals(null));
    
            new PluginExecution().equals(new PluginExecution());
        }
    
        @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)
  2. compat/maven-model/src/test/java/org/apache/maven/model/PluginManagementTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code PluginManagement}.
     *
     */
    class PluginManagementTest {
    
        @Test
        void testHashCodeNullSafe() {
            new PluginManagement().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new PluginManagement().equals(null));
    
            new PluginManagement().equals(new PluginManagement());
        }
    
        @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)
  3. compat/maven-model/src/test/java/org/apache/maven/model/ReportSetTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code ReportSet}.
     *
     */
    class ReportSetTest {
    
        @Test
        void testHashCodeNullSafe() {
            new ReportSet().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new ReportSet().equals(null));
    
            new ReportSet().equals(new ReportSet());
        }
    
        @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)
  4. compat/maven-model/src/test/java/org/apache/maven/model/RepositoryTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code Repository}.
     *
     */
    class RepositoryTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Repository().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new Repository().equals(null));
    
            new Repository().equals(new Repository());
        }
    
        @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)
  5. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

            return key.equals(that.getKey()) && value.equals(that.getValue());
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          // Cannot use key and value equivalence
          return key.hashCode() ^ value.hashCode();
        }
    
        @Override
        public V setValue(V newValue) {
          throw new UnsupportedOperationException();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        List<Object> tentativeArgs = Lists.newArrayList(args);
        tentativeArgs.set(i, alternateArg);
        return createInstance(factory, tentativeArgs).hashCode()
            == createInstance(factory, args).hashCode();
      }
    
      // distinctValues is a type-safe class-values mapping, but we don't have a type-safe data
      // structure to hold the mappings.
      @SuppressWarnings({"unchecked", "rawtypes"})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Count.java

      public void set(int newValue) {
        value = newValue;
      }
    
      public int getAndSet(int newValue) {
        int result = value;
        value = newValue;
        return result;
      }
    
      @Override
      public int hashCode() {
        return value;
      }
    
      @Override
      public boolean equals(@CheckForNull Object obj) {
        return obj instanceof Count && ((Count) obj).value == value;
      }
    
      @Override
      public String toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 05 00:40:25 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Longs.java

       * value).hashCode()}.
       *
       * <p>This method always return the value specified by {@link Long#hashCode()} in java, which
       * might be different from {@code ((Long) value).hashCode()} in GWT because {@link
       * Long#hashCode()} in GWT does not obey the JRE contract.
       *
       * <p><b>Java 8+ users:</b> use {@link Long#hashCode(long)} instead.
       *
       * @param value a primitive {@code long} value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Longs.java

       * value).hashCode()}.
       *
       * <p>This method always return the value specified by {@link Long#hashCode()} in java, which
       * might be different from {@code ((Long) value).hashCode()} in GWT because {@link
       * Long#hashCode()} in GWT does not obey the JRE contract.
       *
       * <p><b>Java 8+ users:</b> use {@link Long#hashCode(long)} instead.
       *
       * @param value a primitive {@code long} value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableList.java

        return Lists.equalsImpl(this, obj);
      }
    
      @Override
      public int hashCode() {
        int hashCode = 1;
        int n = size();
        for (int i = 0; i < n; i++) {
          hashCode = 31 * hashCode + get(i).hashCode();
    
          hashCode = ~~hashCode;
          // needed to deal with GWT integer overflow
        }
        return hashCode;
      }
    
      /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top