Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for resultats (0.23 sec)

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

        List<Future<?>> results = new ArrayList<>();
        final Runnable[] manualExecutorTask = new Runnable[1];
        Executor manualExecutor =
            new Executor() {
              @Override
              public void execute(Runnable task) {
                manualExecutorTask[0] = task;
              }
            };
    
        results.add(serializer.submit(Callables.returning(null), manualExecutor));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        List<Future<?>> results = new ArrayList<>();
        final Runnable[] manualExecutorTask = new Runnable[1];
        Executor manualExecutor =
            new Executor() {
              @Override
              public void execute(Runnable task) {
                manualExecutorTask[0] = task;
              }
            };
    
        results.add(serializer.submit(Callables.returning(null), manualExecutor));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        List<Callable<String>> callables = ImmutableList.of(Callables.returning("x"));
        List<Future<String>> results;
    
        results = service.invokeAll(callables);
        assertThat(getOnlyElement(results)).isInstanceOf(TrustedListenableFutureTask.class);
    
        results = service.invokeAll(callables, 1, SECONDS);
        assertThat(getOnlyElement(results)).isInstanceOf(TrustedListenableFutureTask.class);
    
        /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/FutureCallback.java

    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A callback for accepting the results of a {@link java.util.concurrent.Future} computation
     * asynchronously.
     *
     * <p>To attach to a {@link ListenableFuture} use {@link Futures#addCallback}.
     *
     * @author Anthony Zana
     * @since 10.0
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 05 22:27:35 GMT 2021
    - 1.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/EmptyImmutableSetMultimap.java

        super(ImmutableMap.<Object, ImmutableSet<Object>>of(), 0, null);
      }
    
      /*
       * TODO(b/242884182): Figure out why this helps produce the same class file when we compile most
       * of common.collect a second time with the results of the first compilation on the classpath. Or
       * just back this out once we stop doing that (which we'll do after our internal GWT setup
       * changes).
       */
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 18 16:48:17 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

    public class AbstractNonStreamingHashFunctionTest extends TestCase {
      /**
       * Constructs two trivial HashFunctions (output := input), one streaming and one non-streaming,
       * and checks that their results are identical, no matter which newHasher version we used.
       */
      public void testExhaustive() {
        List<Hasher> hashers =
            ImmutableList.of(
                new StreamingVersion().newHasher(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

    public class AbstractNonStreamingHashFunctionTest extends TestCase {
      /**
       * Constructs two trivial HashFunctions (output := input), one streaming and one non-streaming,
       * and checks that their results are identical, no matter which newHasher version we used.
       */
      public void testExhaustive() {
        List<Hasher> hashers =
            ImmutableList.of(
                new StreamingVersion().newHasher(),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/GraphMutationTest.java

        testGraphMutation(GraphBuilder.undirected());
      }
    
      private static void testGraphMutation(GraphBuilder<? super Integer> graphBuilder) {
        Random gen = new Random(42); // Fixed seed so test results are deterministic.
    
        for (int trial = 0; trial < NUM_TRIALS; ++trial) {
          MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build();
    
          assertThat(graph.nodes()).isEmpty();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 18 16:17:46 GMT 2017
    - 4.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FluentIterable.java

     * as a {@code List}:
     *
     * <pre>{@code
     * ImmutableList<String> results =
     *     FluentIterable.from(database.getClientList())
     *         .filter(Client::isActiveInLastMonth)
     *         .transform(Object::toString)
     *         .limit(10)
     *         .toList();
     * }</pre>
     *
     * The approximate stream equivalent is:
     *
     * <pre>{@code
     * List<String> results =
     *     database.getClientList()
     *         .stream()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

      @Param boolean noWorkToDo;
    
      Random random;
      String testString;
    
      @BeforeExperiment
      void setUp() {
        random = new Random(0xdeadbeef); // fix the seed so results are comparable across runs
    
        int nonAlpha = size / nonAlphaRatio;
        int alpha = size - nonAlpha;
    
        List<Character> chars = Lists.newArrayListWithCapacity(size);
        for (int i = 0; i < alpha; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.8K bytes
    - Viewed (0)
Back to top