Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 685 for HashCode (0.05 seconds)

  1. guava/src/com/google/common/collect/NullsLastOrdering.java

          NullsLastOrdering<?> that = (NullsLastOrdering<?>) object;
          return this.ordering.equals(that.ordering);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return ordering.hashCode() ^ -921210296; // meaningless
      }
    
      @Override
      public String toString() {
        return ordering + ".nullsLast()";
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return this == obj || (obj instanceof Element && ((Element) obj).hash == hash);
        }
    
        @Override
        public int hashCode() {
          return hash;
        }
    
        @Override
        public int compareTo(Element that) {
          return Integer.compare(hash, that.hash);
        }
    
        @Override
        public String toString() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/Restriction.java

        }
    
        @Override
        public int hashCode() {
            int result = 13;
    
            if (lowerBound == null) {
                result += 1;
            } else {
                result += lowerBound.hashCode();
            }
    
            result *= lowerBoundInclusive ? 1 : 2;
    
            if (upperBound == null) {
                result -= 3;
            } else {
                result -= upperBound.hashCode();
            }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            SmbResourceLocatorImpl l1 = locator("smb://server/share/file");
            SmbResourceLocatorImpl l2 = locator("smb://SERVER/share/file");
            assertEquals(l1, l2);
            assertEquals(l1.hashCode(), l2.hashCode());
    
            // Different path -> not equal
            SmbResourceLocatorImpl l5 = locator("smb://server/share/other");
            assertNotEquals(l1, l5);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  5. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelCache.java

                this.version = version;
                this.tag = tag;
    
                int h = 17;
                h = h * 31 + this.groupId.hashCode();
                h = h * 31 + this.artifactId.hashCode();
                h = h * 31 + this.version.hashCode();
                h = h * 31 + this.tag.hashCode();
                hash = h;
            }
    
            @Override
            public boolean equals(Object obj) {
                if (this == obj) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  6. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/FunctionalEquivalence.java

          return function.equals(that.function) && resultEquivalence.equals(that.resultEquivalence);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return Objects.hashCode(function, resultEquivalence);
      }
    
      @Override
      public String toString() {
        return resultEquivalence + ".onResultOf(" + function + ")";
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  8. guava/src/com/google/common/base/PairwiseEquivalence.java

          return this.elementEquivalence.equals(that.elementEquivalence);
        }
    
        return false;
      }
    
      @Override
      public int hashCode() {
        return elementEquivalence.hashCode() ^ 0x46a3eb07;
      }
    
      @Override
      public String toString() {
        return elementEquivalence + ".pairwise()";
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  9. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                }
    
                BigIntegerItem that = (BigIntegerItem) o;
    
                return value.equals(that.value);
            }
    
            @Override
            public int hashCode() {
                return value.hashCode();
            }
    
            @Override
            public String toString() {
                return value.toString();
            }
        }
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 26.4K bytes
    - Click Count (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/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.
     */
    @Deprecated
    record TransferResourceIdentifier(
            String repositoryId,
            String repositoryUrl,
            String resourceName,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 1.5K bytes
    - Click Count (0)
Back to Top