Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for transport (0.15 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. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

            return ImmutableMap.copyOf(sourceMap);
          }
        },
        COPY_OF_ENTRIES {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            return ImmutableMap.copyOf(
                Lists.transform(keys, k -> Maps.immutableEntry(k, "dummy value")));
          }
        },
        BUILDER_PUT_ONE_BY_ONE {
          @Override
          public Map<Object, Object> create(List<?> keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TablesTransposeColumnTest.java

        super(false, true, true, true, true);
      }
    
      @Override
      Table<String, Character, Integer> makeTable() {
        Table<Character, String, Integer> original = TreeBasedTable.create();
        return Tables.transpose(original);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. 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)
  5. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

        assertThat(f.get()).isEqualTo(CustomRuntimeException.class);
      }
    
      public void testTransform() throws Exception {
        FluentFuture<Integer> f =
            FluentFuture.from(immediateFuture(1))
                .transform(
                    new Function<Integer, Integer>() {
                      @Override
                      public Integer apply(Integer input) {
                        return input + 1;
                      }
                    },
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K 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/IteratorsTest.java

        assertFalse(iterator.hasNext());
      }
    
      public void testTransform() {
        Iterator<String> input = asList("1", "2", "3").iterator();
        Iterator<Integer> result =
            Iterators.transform(
                input,
                new Function<String, Integer>() {
                  @Override
                  public Integer apply(String from) {
                    return Integer.valueOf(from);
                  }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top