Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 554 for HashCode (0.05 sec)

  1. android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

        return runHashFunction(reps, Hashing.fingerprint2011());
      }
    
      @Benchmark
      byte fingerprintChecksum(int reps) throws Exception {
        byte result = 0x01;
        for (int i = 0; i < reps; i++) {
          HashCode checksum = new Fingerprint2011().hashBytes(testBytes, 0, testBytes.length);
          result = (byte) (result ^ checksum.asLong());
        }
        return result;
      }
    
      // Helpers + main
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 16:53:43 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/NullsFirstOrdering.java

          NullsFirstOrdering<?> that = (NullsFirstOrdering<?>) object;
          return this.ordering.equals(that.ordering);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return ordering.hashCode() ^ 957692532; // meaningless
      }
    
      @Override
      public String toString() {
        return ordering + ".nullsFirst()";
      }
    
      private static final long serialVersionUID = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 27 16:03:47 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/ExtensibleEnums.java

                this.id = Objects.requireNonNull(id);
            }
    
            public String id() {
                return id;
            }
    
            @Override
            public int hashCode() {
                return id().hashCode();
            }
    
            @Override
            public boolean equals(Object obj) {
                return obj != null && getClass() == obj.getClass() && id().equals(((DefaultExtensibleEnum) obj).id());
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Jul 10 20:52:34 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/CaseFormat.java

            return sourceFormat.equals(that.sourceFormat) && targetFormat.equals(that.targetFormat);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return sourceFormat.hashCode() ^ targetFormat.hashCode();
        }
    
        @Override
        public String toString() {
          return sourceFormat + ".converterTo(" + targetFormat + ")";
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

            return sb.toString();
        }
    
        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + eventType;
            result = prime * result + ((exception == null) ? 0 : exception.hashCode());
            result = prime * result + ((localFile == null) ? 0 : localFile.hashCode());
            result = prime * result + requestType;
            return result;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/ValueGraph.java

     * additional documentation, including:
     *
     * <ul>
     *   <li><a
     *       href="https://github.com/google/guava/wiki/GraphsExplained#equals-hashcode-and-graph-equivalence">
     *       {@code equals()}, {@code hashCode()}, and graph equivalence</a>
     *   <li><a href="https://github.com/google/guava/wiki/GraphsExplained#synchronization">
     *       Synchronization policy</a>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/query/DefaultQueryBuilder.java

        }
    
        @Override
        public void writeTo(final StreamOutput out) throws IOException {
            queryBuilder.writeTo(out);
        }
    
        @Override
        public int hashCode() {
            return queryBuilder.hashCode();
        }
    
        @Override
        public boolean equals(final Object obj) {
            if (this == obj) {
                return true;
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

        }
        return try {
          toVerify.verify(signingCert.publicKey)
          true
        } catch (verifyFailed: GeneralSecurityException) {
          false
        }
      }
    
      override fun hashCode(): Int {
        return trustRootIndex.hashCode()
      }
    
      override fun equals(other: Any?): Boolean {
        return if (other === this) {
          true
        } else {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Enums.java

            StringConverter<?> that = (StringConverter<?>) object;
            return this.enumClass.equals(that.enumClass);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return enumClass.hashCode();
        }
    
        @Override
        public String toString() {
          return "Enums.stringConverter(" + enumClass.getName() + ".class)";
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CookieTest.kt

            val cookieB = parseCookie(0, url, stringB!!)
            if (stringA == stringB) {
              assertThat(cookieB.hashCode()).isEqualTo(cookieA.hashCode())
              assertThat(cookieB).isEqualTo(cookieA)
            } else {
              assertThat(cookieB.hashCode()).isNotEqualTo(cookieA.hashCode().toLong())
              assertThat(cookieB).isNotEqualTo(cookieA)
            }
          }
          assertThat(cookieA).isNotEqualTo(null)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top