Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 192 for Stuart (0.15 sec)

  1. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        // (which will block) in the same thread.
        new Thread() {
          @Override
          public void run() {
            inputFuture.set(SLOW_FUNC_VALID_INPUT_DATA);
          }
        }.start();
        funcIsWaitingLatch.await();
    
        assertTrue(resultFuture.cancel(true));
        assertTrue(resultFuture.isCancelled());
        assertFalse(inputFuture.isCancelled());
        assertFalse(outputFuture.isCancelled());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

          return samples;
        }
    
        @Override
        public Set<V> create(Object... elements) {
          @SuppressWarnings("unchecked")
          V[] valuesArray = (V[]) elements;
    
          // Start with a suitably shaped collection of entries
          Collection<Entry<K, V>> originalEntries = mapGenerator.getSampleElements(elements.length);
    
          // Create a copy of that, with the desired value for each value
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

          throw new AssertionFailedError();
        }
    
        @Override
        public boolean isDone() {
          /*
           * If isDone is true during the call to listenInPoolThread,
           * listenInPoolThread doesn't start a thread. Make sure it's false the
           * first time through (and forever after, since no one else cares about
           * it).
           */
          return false;
        }
      }
    
    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)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        // Check that we wait long enough anyway (presumably as long as MAX_VALUE nanos):
        TimedWaiterThread waiter = new TimedWaiterThread(future, Long.MAX_VALUE, SECONDS);
        waiter.start();
        waiter.awaitWaiting();
    
        future.set(1);
        waiter.join();
      }
    
      @J2ktIncompatible // TODO(b/324550390): Enable
      public void testSetNull() throws Exception {
        future.set(null);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

      private @Nullable Throwable uncaughtThrowable = null;
    
      public TestThread(L lockLikeObject, String threadName) {
        super(threadName);
        this.lockLikeObject = checkNotNull(lockLikeObject);
        start();
      }
    
      // Thread.stop() is okay because all threads started by a test are dying at the end of the test,
      // so there is no object state put at risk by stopping the threads abruptly. In some cases a test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Ascii.java

       *
       * <p>Although RFC 20 names this as "Null", note that it is distinct from the C/C++ "NULL"
       * pointer.
       *
       * @since 8.0
       */
      public static final byte NUL = 0;
    
      /**
       * Start of Heading: A communication control character used at the beginning of a sequence of
       * characters which constitute a machine-sensible address or routing information. Such a sequence
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  7. guava/pom.xml

                <!-- Even after we stop using JSR305 annotations in our own code, we'll want this link so that NullPointerTester's docs can link to @CheckForNull and friends... at least once we start using this config for guava-testlib. -->
                <offlineLink>
                  <url>https://static.javadoc.io/com.google.code.findbugs/jsr305/3.0.1/</url>
                  <location>${project.basedir}/javadoc-link/jsr305</location>
    XML
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 11 16:37:45 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Strings.java

        if (args == null) {
          args = new Object[] {"(Object[])null"};
        } else {
          for (int i = 0; i < args.length; i++) {
            args[i] = lenientToString(args[i]);
          }
        }
    
        // start substituting the arguments into the '%s' placeholders
        StringBuilder builder = new StringBuilder(template.length() + 16 * args.length);
        int templateStart = 0;
        int i = 0;
        while (i < args.length) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/Quantiles.java

       * greater than or equal to that.
       */
      private static int partition(double[] array, int from, int to) {
        // Select a pivot, and move it to the start of the slice i.e. to index from.
        movePivotToStartOfSlice(array, from, to);
        double pivot = array[from];
    
        // Move all elements with indexes in (from, to] which are greater than the pivot to the end of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertNotNull(ArbitraryInstances.get(Splitter.class).split("a,b"));
        assertThat(ArbitraryInstances.get(com.google.common.base.Optional.class)).isAbsent();
        ArbitraryInstances.get(Stopwatch.class).start();
        assertNotNull(ArbitraryInstances.get(Ticker.class));
        assertFreshInstanceReturned(Random.class);
        assertEquals(
            ArbitraryInstances.get(Random.class).nextInt(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.1K bytes
    - Viewed (0)
Back to top