Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for identityHashCode (0.09 sec)

  1. 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
      fun instancesAreInterned() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt

        }
      }
    
      override fun equals(other: Any?): Boolean =
        other is AndroidCertificateChainCleaner &&
          other.trustManager === this.trustManager
    
      override fun hashCode(): Int = System.identityHashCode(trustManager)
    
      companion object {
        @SuppressSignatureCheck
        fun buildIfSupported(trustManager: X509TrustManager): AndroidCertificateChainCleaner? {
          val extensions =
            try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java

      }
    
      @Benchmark
      int iteration(int reps) {
        int x = 0;
    
        for (int i = 0; i < reps; i++) {
          for (Element y : setToTest) {
            x ^= System.identityHashCode(y);
          }
        }
        return x;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java

      }
    
      @Benchmark
      int iteration(int reps) {
        int x = 0;
    
        for (int i = 0; i < reps; i++) {
          for (Element y : setToTest) {
            x ^= System.identityHashCode(y);
          }
        }
        return x;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/net/UuidUtil.java

        private static final SecureRandom RANDOM = new SecureRandom();
    
        private static final String BASE = StringUtil.toHex(getAddress()) + StringUtil.toHex(System.identityHashCode(RANDOM));
    
        /**
         * UUIDを作成します。
         *
         * @return UUIDの文字列
         */
        public static String create() {
            final StringBuilder buf = new StringBuilder(BASE.length() * 2);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

          collection.add(new Object());
        }
      }
    
      @Benchmark
      int runOperation(int reps) {
        int result = 0;
        for (int i = 0; i < reps; i++) {
          result += System.identityHashCode(operation.operate(collection.stream()));
        }
        return result;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Equivalence.java

       */
      public static Equivalence<Object> equals() {
        return Equals.INSTANCE;
      }
    
      /**
       * Returns an equivalence that uses {@code ==} to compare values and {@link
       * System#identityHashCode(Object)} to compute the hash code. {@link Equivalence#equivalent}
       * returns {@code true} if {@code a == b}, including in the case that a and b are both null.
       *
       * @since 13.0
       * @since 4.0 (in Equivalences)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Cut.java

          }
        }
    
        @Override
        public int compareTo(Cut<Comparable<?>> o) {
          return (o == this) ? 0 : -1;
        }
    
        @Override
        public int hashCode() {
          return System.identityHashCode(this);
        }
    
        @Override
        public String toString() {
          return "-\u221e";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            if ( obj == null ) {
                enc_ndr_long(0);
                return;
            }
            switch ( type ) {
            case 1: /* unique */
            case 3: /* ref */
                enc_ndr_long(System.identityHashCode(obj));
                return;
            case 2: /* ptr */
                enc_ndr_long(getDceReferent(obj));
                return;
            }
        }
    
    
        @Override
        public String toString () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/eventbus/Subscriber.java

        return new SubscriberExceptionContext(bus, event, target, method);
      }
    
      @Override
      public final int hashCode() {
        return (31 + method.hashCode()) * 31 + System.identityHashCode(target);
      }
    
      @Override
      public final boolean equals(@CheckForNull Object obj) {
        if (obj instanceof Subscriber) {
          Subscriber that = (Subscriber) obj;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 4.7K bytes
    - Viewed (0)
Back to top