Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for transport (0.24 sec)

  1. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testTransform_absent() {
        assertEquals(Optional.absent(), Optional.absent().transform(Functions.identity()));
        assertEquals(Optional.absent(), Optional.absent().transform(Functions.toStringFunction()));
      }
    
      public void testTransform_presentIdentity() {
        assertEquals(Optional.of("a"), Optional.of("a").transform(Functions.identity()));
      }
    
      public void testTransform_presentToString() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

     *
     * <pre>{@code
     * ListenableFuture<Boolean> adminIsLoggedIn =
     *     FluentFuture.from(usersDatabase.getAdminUser())
     *         .transform(User::getId, directExecutor())
     *         .transform(ActivityService::isLoggedIn, threadPool)
     *         .catching(RpcException.class, e -> false, directExecutor());
     * }</pre>
     *
     * <h3>Alternatives</h3>
     *
     * <h4>Frameworks</h4>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                        }
    
                        @Override
                        public Entry<String, String> next() {
                          return transform(iterator.next());
                        }
    
                        private Entry<String, String> transform(final Entry<String, String> next) {
                          return new Entry<String, String>() {
    
                            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                        }
    
                        @Override
                        public Entry<String, String> next() {
                          return transform(iterator.next());
                        }
    
                        private Entry<String, String> transform(final Entry<String, String> next) {
                          return new Entry<String, String>() {
    
                            @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Collections2.java

       * Lists#transform}. If only an {@code Iterable} is available, use {@link Iterables#transform}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link java.util.stream.Stream#map Stream.map}.
       */
      public static <F extends @Nullable Object, T extends @Nullable Object> Collection<T> transform(
          Collection<F> fromCollection, Function<? super F, T> function) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterables.java

       * <p>If the input {@code Iterable} is known to be a {@code List} or other {@code Collection},
       * consider {@link Lists#transform} and {@link Collections2#transform}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link Stream#map}
       */
      public static <F extends @Nullable Object, T extends @Nullable Object> Iterable<T> transform(
          final Iterable<F> fromIterable, final Function<? super F, ? extends T> function) {
        checkNotNull(fromIterable);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

    package com.google.common.reflect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.Iterables.transform;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.Joiner;
    import com.google.common.base.Objects;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

              Collection<String> input =
                  inputIsSet
                      ? new MutatedOnQuerySet<>(infiniteSetsFromStartIndex)
                      : new MutatedOnQueryList<>(
                          Iterables.transform(infiniteSetsFromStartIndex, ImmutableList::copyOf));
              Set<String> immutableCopy;
              try {
                immutableCopy = copyOf(input);
              } catch (RuntimeException e) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

              Collection<String> input =
                  inputIsSet
                      ? new MutatedOnQuerySet<>(infiniteSetsFromStartIndex)
                      : new MutatedOnQueryList<>(
                          Iterables.transform(infiniteSetsFromStartIndex, ImmutableList::copyOf));
              Set<String> immutableCopy;
              try {
                immutableCopy = copyOf(input);
              } catch (RuntimeException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TableCollectionTest.java

                      @Override
                      Table<String, Integer, Character> createTable() {
                        Table<Integer, String, Character> original = TreeBasedTable.create();
                        return Tables.transpose(original);
                      }
                    })
                .named("TransposedTable.cellSet")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.REMOVE_OPERATIONS,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
Back to top