Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for identityHashCode (0.22 sec)

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

          }
          strings[i] = sb.toString();
        }
      }
    
      @Benchmark
      int hashUtf8(int reps) {
        int res = 0;
        for (int i = 0; i < reps; i++) {
          res +=
              System.identityHashCode(
                  hashFunctionEnum
                      .getHashFunction()
                      .hashString(strings[i & SAMPLE_MASK], StandardCharsets.UTF_8));
        }
        return res;
      }
    
      @Benchmark
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java

        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          tmp += System.identityHashCode(encoding.encoding.encode(encodingInputs[i & INPUTS_MASK]));
        }
        return tmp;
      }
    
      @Benchmark
      public int decode(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          tmp += System.identityHashCode(encoding.encoding.decode(decodingInputs[i & INPUTS_MASK]));
        }
        return tmp;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

          }
          strings[i] = sb.toString();
        }
      }
    
      @Benchmark
      int hashUtf8(int reps) {
        int res = 0;
        for (int i = 0; i < reps; i++) {
          res +=
              System.identityHashCode(
                  hashFunctionEnum
                      .getHashFunction()
                      .hashString(strings[i & SAMPLE_MASK], StandardCharsets.UTF_8));
        }
        return res;
      }
    
      @Benchmark
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/collect/SetCreationBenchmark.java

      void setUp() {
        sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size);
      }
    
      @Benchmark
      int creation(int reps) {
        int x = 0;
        for (int i = 0; i < reps; i++) {
          x ^= System.identityHashCode(impl.create(sampleData.getValuesInSet()));
        }
        return x;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

        }
    
    
        @Override
        public void removeTransport ( SmbTransport trans ) {
            if ( log.isDebugEnabled() ) {
                log.debug("Scheduling transport connection for removal " + trans + " (" + System.identityHashCode(trans) + ")");
            }
            this.toRemove.add((SmbTransportImpl) trans);
        }
    
    
        private void cleanup () {
            synchronized ( this.connections ) {
                SmbTransportImpl trans;
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 12.5K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java

        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          tmp += System.identityHashCode(encoding.encoding.encode(encodingInputs[i & INPUTS_MASK]));
        }
        return tmp;
      }
    
      @Benchmark
      public int decode(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          tmp += System.identityHashCode(encoding.encoding.decode(decodingInputs[i & INPUTS_MASK]));
        }
        return tmp;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  7. 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);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. 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;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.9K bytes
    - Viewed (0)
  9. 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 {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

    import static com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState.QUEUING;
    import static com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState.RUNNING;
    import static java.lang.System.identityHashCode;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Preconditions;
    import com.google.errorprone.annotations.concurrent.GuardedBy;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
Back to top