Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for Total (0.16 sec)

  1. android/guava/src/com/google/common/io/CharStreams.java

          }
        }
    
        checkNotNull(from);
        checkNotNull(to);
        long total = 0;
        CharBuffer buf = createBuffer();
        while (from.read(buf) != -1) {
          Java8Compatibility.flip(buf);
          to.append(buf);
          total += buf.remaining();
          Java8Compatibility.clear(buf);
        }
        return total;
      }
    
      // TODO(lukes): consider allowing callers to pass in a buffer to use, some callers would be able
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableRangeSet.java

          Integer result = size;
          if (result == null) {
            long total = 0;
            for (Range<C> range : ranges) {
              total += ContiguousSet.create(range, domain).size();
              if (total >= Integer.MAX_VALUE) {
                break;
              }
            }
            result = size = Ints.saturatedCast(total);
          }
          return result.intValue();
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

          Integer result = size;
          if (result == null) {
            long total = 0;
            for (Range<C> range : ranges) {
              total += ContiguousSet.create(range, domain).size();
              if (total >= Integer.MAX_VALUE) {
                break;
              }
            }
            result = size = Ints.saturatedCast(total);
          }
          return result.intValue();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteStreams.java

        }
        checkPositionIndexes(off, off + len, b.length);
        int total = 0;
        while (total < len) {
          int result = in.read(b, off + total, len - total);
          if (result == -1) {
            break;
          }
          total += result;
        }
        return total;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeMultiset.java

      private long aggregateForEntries(Aggregate aggr) {
        AvlNode<E> root = rootReference.get();
        long total = aggr.treeAggregate(root);
        if (range.hasLowerBound()) {
          total -= aggregateBelowRange(aggr, root);
        }
        if (range.hasUpperBound()) {
          total -= aggregateAboveRange(aggr, root);
        }
        return total;
      }
    
      private long aggregateBelowRange(Aggregate aggr, @CheckForNull AvlNode<E> node) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        for (int i = 0; i < threads; i++) {
          futures.add(threadPool.submit(task));
        }
        long total = 0;
        for (Future<Long> future : futures) {
          total += future.get();
        }
        return total;
      }
    
      private long runAddSingleThread(int reps) {
        Random random = new Random();
        int nKeys = keys.size();
        long blah = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheStats.java

     *             are incremented, and the total loading time, in nanoseconds, is added to {@code
     *             totalLoadTime}.
     *         <li>When an exception is thrown while loading an entry, {@code missCount} and {@code
     *             loadExceptionCount} are incremented, and the total loading time, in nanoseconds, is
     *             added to {@code totalLoadTime}.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/CacheStats.java

     *             are incremented, and the total loading time, in nanoseconds, is added to {@code
     *             totalLoadTime}.
     *         <li>When an exception is thrown while loading an entry, {@code missCount} and {@code
     *             loadExceptionCount} are incremented, and the total loading time, in nanoseconds, is
     *             added to {@code totalLoadTime}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

            }
            if (done) {
              break;
            }
          }
        }
      }
    
      /**
       * Multiple threads using same array of counters successfully update a number of times equal to
       * total count
       */
      public void testCountingInMultipleThreads() throws InterruptedException {
        final AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        for (int i = 0; i < threads; i++) {
          futures.add(threadPool.submit(task));
        }
        long total = 0;
        for (Future<Long> future : futures) {
          total += future.get();
        }
        return total;
      }
    
      private long runAddSingleThread(int reps) {
        Random random = new Random();
        int nKeys = keys.size();
        long blah = 0;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
Back to top