Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 481 for computed (0.04 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

              super.close();
              if (!completed) {
                completed = true;
                progressListener.update(totalBytesWritten, contentLength(), completed);
              }
            }
          };
        }
      }
    
      interface ProgressListener {
        void update(long bytesWritten, long contentLength, boolean done);
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  2. docs/recipes.md

                    if (!completed) {
                      completed = true
                      progressListener.update(totalBytesWritten, contentLength(), completed)
                    }
                  }
                }
    
                val bufferedSink = forwardingSink.buffer()
                delegate.writeTo(bufferedSink)
                bufferedSink.flush()
              }
            }
    
            fun interface ProgressListener {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  3. misc/cgo/gmp/fib.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // Compute Fibonacci numbers with two goroutines
    // that pass integers back and forth.  No actual
    // concurrency, just threads and synchronization
    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	big "."
    	"runtime"
    )
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 919 bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractSequentialIterator.java

        this.nextOrNull = firstOrNull;
      }
    
      /**
       * Returns the element that follows {@code previous}, or returns {@code null} if no elements
       * remain. This method is invoked during each call to {@link #next()} in order to compute the
       * result of a <i>future</i> call to {@code next()}.
       */
      protected abstract @Nullable T computeNext(T previous);
    
      @Override
      public final boolean hasNext() {
        return nextOrNull != null;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/cache/package-info.java

     * </ul>
     * <p>
     * Example usage:
     * <pre>
     * RequestCache cache = cacheFactory.createCache();
     * Result result = cache.request(myRequest, req -> {
     *     // Expensive operation to compute result
     *     return computedResult;
     * });
     * </pre>
     * <p>
     * The package also provides support for batch operations through {@link org.apache.maven.api.cache.BatchRequestException}
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        assertEquals(0xcf54171253fdc198L, hasher.hash().asLong());
      }
    
      /** Convenience method to compute a fingerprint on a full bytes array. */
      private static long fingerprint(byte[] bytes) {
        return fingerprint(bytes, bytes.length);
      }
    
      /** Convenience method to compute a fingerprint on a subset of a byte array. */
      private static long fingerprint(byte[] bytes, int length) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/entity/ParamMap.java

            // use original key
            return parent.computeIfPresent(key, remappingFunction);
        }
    
        @Override
        public V compute(final K key, final BiFunction<? super K, ? super V, ? extends V> remappingFunction) {
            // use original key
            return parent.compute(key, remappingFunction);
        }
    
        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java

         */
        @Nullable
        <T> T get(@Nonnull Key<T> key);
    
        /**
         * Retrieve of compute the data associated with the specified key.
         *
         * @param key the key for which to retrieve the session data, must not be {@code null}
         * @param supplier the supplier will compute the new value
         * @return the session data associated with the key
         */
        @Nullable
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Feb 28 23:31:09 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       *
       * @since 21.0
       */
      @CanIgnoreReturnValue
      public long updateAndGet(K key, LongUnaryOperator updaterFunction) {
        checkNotNull(updaterFunction);
        Long result =
            map.compute(
                key, (k, value) -> updaterFunction.applyAsLong(value == null ? 0L : value.longValue()));
        return requireNonNull(result);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       *
       * @param c the collection whose elements are to be placed into this priority queue
       * @throws ClassCastException if elements of the specified collection cannot be compared to one
       *     another according to the priority queue's ordering
       * @throws NullPointerException if the specified collection or any of its elements are null
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
Back to top