Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 214 for Down (0.14 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        offer(e); // never need to block
      }
    
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public @Nullable E poll() {
        final Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return q.poll();
        } finally {
          monitor.leave();
        }
      }
    
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        }
        return tmp;
      }
    
      @Benchmark
      long parseUnsignedLong(int reps) {
        long tmp = 0;
        // Given that we make three calls per pass, we scale reps down in order
        // to do a comparable amount of work to other measurements.
        int scaledReps = reps / 3 + 1;
        for (int i = 0; i < scaledReps; i++) {
          int j = i & ARRAY_MASK;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/DoubleMathRoundingBenchmark.java

      private static final double[] doubleInLongRange = new double[ARRAY_SIZE];
      private static final double[] positiveDoubles = new double[ARRAY_SIZE];
    
      @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"})
      RoundingMode mode;
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          doubleInIntRange[i] = randomDouble(Integer.SIZE - 2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java

          nonzero[i] = randomNonZeroBigInteger(Integer.SIZE - 2).intValue();
          ints[i] = RANDOM_SOURCE.nextInt();
        }
      }
    
      @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"})
      RoundingMode mode;
    
      @Benchmark
      int log2(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

          }
        } while (System.nanoTime() - deadline < 0);
        throw formatRuntimeException(
            "Latch failed to count down within %d second timeout", timeoutSeconds);
      }
    
      /**
       * Creates a garbage object that counts down the latch in its finalizer. Sequestered into a
       * separate method to make it somewhat more likely to be unreachable.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    Here, Bill! catch hold of this rope--Will the roof bear?--Mind
    that loose slate--Oh, it's coming down!  Heads below!' (a loud
    crash)--`Now, who did that?--It was Bill, I fancy--Who's to go
    down the chimney?--Nay, I shan't! YOU do it!--That I won't,
    then!--Bill's to go down--Here, Bill! the master says you're to
    go down the chimney!'
    
      `Oh! So Bill's got to come down the chimney, has he?' said
    Alice to herself.  `Shy, they seem to put everything upon Bill!
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 145.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/DoubleMathTest.java

    import static com.google.common.math.MathTesting.POSITIVE_FINITE_DOUBLE_CANDIDATES;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    import static java.math.RoundingMode.HALF_UP;
    import static java.math.RoundingMode.UNNECESSARY;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        assertFalse(singleCallListener.wasCalled());
        assertFalse(listenableFuture.isDone());
    
        listenableFuture.addListener(singleCallListener, directExecutor());
        /*
         * Don't shut down until the listenInPoolThread task has been accepted to
         * run. We want to see what happens when it's interrupted, not when it's
         * rejected.
         */
        submitSuccessful.await();
        executorService.shutdownNow();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

            users indicates that they really appreciate Guava's high power-to-weight ratio. It's
            important to us to keep Guava as easy to use and understand as we can. That means boiling
            features down to compact but powerful abstractions, and controlling feature bloat carefully.
    
      - type: textarea
        attributes:
          label: API(s)
          description: Which existing classes or methods do you want to improve?
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals((Integer) 2, it.next());
        it.remove();
        // After this remove, 400 has moved up and 20 down past cursor
        assertTrue("Heap is not intact after remove", mmHeap.isIntact());
        assertEquals((Integer) 10, it.next());
        assertEquals((Integer) 3, it.next());
        it.remove();
        // After this remove, 400 moved down again and 500 up past the cursor
        assertTrue("Heap is not intact after remove", mmHeap.isIntact());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
Back to top