Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for submit (0.17 sec)

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

      @GwtIncompatible
      public static Executor newSequentialExecutor(Executor delegate) {
        return new SequentialExecutor(delegate);
      }
    
      /**
       * Creates an {@link ExecutorService} whose {@code submit} and {@code invokeAll} methods submit
       * {@link ListenableFutureTask} instances to the given delegate executor. Those methods, as well
       * as {@code execute} and {@code invokeAny}, are implemented in terms of calls to {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     *       captured by any of the steps in the pipeline are closed.
     * </ol>
     *
     * <h3>Starting a pipeline</h3>
     *
     * Start a {@code ClosingFuture} pipeline {@linkplain #submit(ClosingCallable, Executor) from a
     * callable block} that may capture objects for later closing. To start a pipeline from a {@link
     * ListenableFuture} that doesn't create resources that should be closed later, you can use {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(ImmutableSortedSet.of(4, 6, 8, 10), Sets.subSet(set, Range.atLeast(4)));
        assertEquals(ImmutableSortedSet.of(8, 10), Sets.subSet(set, Range.atLeast(7)));
        assertEquals(empty, Sets.subSet(set, Range.atLeast(20)));
    
        assertEquals(set, Sets.subSet(set, Range.greaterThan(0)));
        assertEquals(ImmutableSortedSet.of(6, 8, 10), Sets.subSet(set, Range.greaterThan(4)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              keySet.getSubSet(fromIndex, toIndex), valueList.subList(fromIndex, toIndex));
        }
      }
    
      /**
       * This method returns a {@code ImmutableSortedMap}, consisting of the entries whose keys are less
       * than {@code toKey}.
       *
       * <p>The {@link SortedMap#headMap} documentation states that a submap of a submap throws an
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Futures.java

       *
       * @throws RejectedExecutionException if the task cannot be scheduled for execution
       * @since 28.2
       */
      public static <O extends @Nullable Object> ListenableFuture<O> submit(
          Callable<O> callable, Executor executor) {
        TrustedListenableFutureTask<O> task = TrustedListenableFutureTask.create(callable);
        executor.execute(task);
        return task;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      }
    
      public void testRowKeySetSubSet() {
        sortedTable = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c', "dog", 2, 'd');
        Set<String> set = sortedTable.rowKeySet().subSet("cat", "egg");
        assertEquals(Collections.singleton("dog"), set);
        set.clear();
        assertTrue(set.isEmpty());
        assertEquals(ImmutableSet.of("bar", "foo"), sortedTable.rowKeySet());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableList.java

        }
      }
    
      /**
       * Called by the default implementation of {@link #subList} when {@code toIndex - fromIndex > 1},
       * after index validation has already been performed.
       */
      ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
        return new SubList(fromIndex, toIndex - fromIndex);
      }
    
      class SubList extends ImmutableList<E> {
        final transient int offset;
        final transient int length;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      /**
       * {@inheritDoc}
       *
       * <p>This method returns a serializable {@code ImmutableSortedSet}.
       *
       * <p>The {@link SortedSet#subSet} documentation states that a subset of a subset throws an {@link
       * IllegalArgumentException} if passed a {@code fromElement} smaller than an earlier {@code
       * fromElement}. However, this method doesn't throw an exception in that situation, but instead
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        Map<String, Integer> map =
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", false);
        assertThat(map.entrySet()).containsExactly(Maps.immutableEntry("three", 3));
      }
    
      public void testSubMapInclusiveExclusive() {
        Map<String, Integer> map =
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", false);
        assertThat(map.entrySet())
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        short[] array = {(short) 0, (short) 1, (short) 2, (short) 3};
        List<Short> list = Shorts.asList(array);
        assertThat(Shorts.toArray(list.subList(1, 3))).isEqualTo(new short[] {(short) 1, (short) 2});
        assertThat(Shorts.toArray(list.subList(2, 2))).isEqualTo(new short[] {});
      }
    
      public void testAsListEmpty() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top