Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 319 for adjust (0.03 sec)

  1. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

        try {
          long remainingNanos = unit.toNanos(timeout);
          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // CountDownLatch treats negative timeouts just like zero.
              return latch.await(remainingNanos, NANOSECONDS);
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/StringsTest.java

      }
    
      public void testPadEnd_null() {
        assertThrows(NullPointerException.class, () -> Strings.padEnd(null, 5, '0'));
      }
    
      @SuppressWarnings("InlineMeInliner") // test of method that doesn't just delegate
      public void testRepeat() {
        String input = "20";
        assertEquals("", Strings.repeat(input, 0));
        assertEquals("20", Strings.repeat(input, 1));
        assertEquals("2020", Strings.repeat(input, 2));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/eventbus/SubscriberRegistry.java

          }
    
          // don't try to remove the set if it's empty; that can't be done safely without a lock
          // anyway, if the set is empty it'll just be wrapping an array of length 0
        }
      }
    
      @VisibleForTesting
      Set<Subscriber> getSubscribersForTesting(Class<?> eventType) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

        validations:
          required: true
    
      - type: markdown
        attributes:
          value: >
            Did you *actually* encounter the need for this enhancement in a real-world scenario, or does
            it just seem like a sensible behavior for the feature to have?
    
    
            Before we make significant changes to existing features in Guava, we really want to be sure
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java

       * suppression externally, but it's OK because we don't enforce test-size rules there.)
       *
       * We'd just use PackageSanityTests directly, saving us from needing this separate type, but we're
       * currently skipping MediumTests on Android, and we skip them by not making them present at
       * runtime at all. I could just make _this_ test a MediumTest, but then it wouldn't run on
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 02:48:50 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/CharStreams.java

       * types. CharBuffer has poor performance when being written into or read out of so round tripping
       * all the bytes through the buffer takes a long time. With these specialized types we can just
       * use a char array.
       *
       * @param from the object to read from
       * @param to the object to write to
       * @return the number of characters copied
       * @throws IOException if an I/O error occurs
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 30 17:25:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheLoader.java

        return new FunctionToCacheLoader<>(function);
      }
    
      /**
       * Returns a cache loader based on an <i>existing</i> supplier instance. Note that there's no need
       * to create a <i>new</i> supplier just to pass it in here; just subclass {@code CacheLoader} and
       * implement {@link #load load} instead.
       *
       * <p>The returned object is serializable if {@code supplier} is serializable.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/bug_report.yaml

            the [latest](https://github.com/google/guava/releases/latest) version of Guava available.
            If it's already fixed in the latest version of Guava, then please just update your Guava
            version instead.
    
      - type: input
        attributes:
          label: Guava Version
          description: Which version of Guava are you using?
          placeholder: e.g., 33.2.1-jre
        validations:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 16 20:08:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class AbstractListeningExecutorServiceTest extends TestCase {
    
      public void testSubmit() throws Exception {
        /*
         * Mostly just tests that TrustedListenableFutureTask are created and run; tests for
         * TrustedListenableFutureTask should ensure that listeners are called correctly.
         */
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class AbstractListeningExecutorServiceTest extends TestCase {
    
      public void testSubmit() throws Exception {
        /*
         * Mostly just tests that TrustedListenableFutureTask are created and run; tests for
         * TrustedListenableFutureTask should ensure that listeners are called correctly.
         */
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top