Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 559 for hashcode (0.06 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

        for (E element : getOrderedElements()) {
          expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode());
        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        Mac mac = Mac.getInstance("HmacMD5");
        mac.init(MD5_KEY);
        mac.update(input.getBytes(UTF_8));
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString());
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/AnyValue.kt

      val bytes: ByteString,
    ) {
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + tagClass
        result = 31 * result + tag.toInt()
        result = 31 * result + (if (constructed) 0 else 1)
        result = 31 * result + length.toInt()
        result = 31 * result + bytes.hashCode()
        return result
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/misc/Tuple4.java

        }
    
        @Override
        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + ((value1 == null) ? 0 : value1.hashCode());
            result = prime * result + ((value2 == null) ? 0 : value2.hashCode());
            result = prime * result + ((value3 == null) ? 0 : value3.hashCode());
            result = prime * result + ((value4 == null) ? 0 : value4.hashCode());
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java

        Class<? extends Exception> exceptionType = this.exceptionType.exceptionType;
        for (int i = 0; i < reps; ++i) {
          try {
            tmp += getChecked(validator, future, exceptionType).hashCode();
          } catch (Exception e) {
            tmp += e.hashCode();
          }
        }
        return tmp;
      }
    
      private static GetCheckedTypeValidator nonCachingWithoutConstructorCheckValidator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 22 03:01:34 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractMultiset.java

      }
    
      /**
       * {@inheritDoc}
       *
       * <p>This implementation returns the hash code of {@link Multiset#entrySet()}.
       */
      @Override
      public final int hashCode() {
        return entrySet().hashCode();
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>This implementation returns the result of invoking {@code toString} on {@link
       * Multiset#entrySet()}.
       */
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 6K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java

                }
                DefaultVersion that = (DefaultVersion) o;
                return delegate.equals(that.delegate);
            }
    
            @Override
            public int hashCode() {
                return delegate.hashCode();
            }
    
            @Override
            public String asString() {
                return delegate.toString();
            }
    
            @Override
            public String toString() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java

        }
    
        @Override
        public int hashCode() {
            int hash = 17;
            hash = hash * 31 + (buildReactor == null ? 0 : buildReactor.hashCode());
            hash = hash * 31 + (ideWorkspace == null ? 0 : ideWorkspace.hashCode());
            hash = hash * 31 + (userLocalArtifactRepository == null ? 0 : userLocalArtifactRepository.hashCode());
    
            return hash;
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

        assertThat(cs.hashCode(), cs.toString())
          .isEqualTo(System.identityHashCode(cs))
      }
    
      @Test
      fun hashCode_usesIdentityHashCode_regularCase() {
        // This one's javaName matches the identifier.
        val cs = CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA256
        assertThat(cs.hashCode(), cs.toString())
          .isEqualTo(System.identityHashCode(cs))
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        assertEquals(hashCode, hasher.hash().asLong());
    
        hasher = HASH_FN.newHasher();
        hasher.putLong(0x0000000001000101L);
        assertEquals(hashCode, hasher.hash().asLong());
    
        hasher = HASH_FN.newHasher();
        hasher
            .putShort((short) 0x0101)
            .putShort((short) 0x0100)
            .putShort((short) 0x0000)
            .putShort((short) 0x0000);
        assertEquals(hashCode, hasher.hash().asLong());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top