Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for transformers (0.16 sec)

  1. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

              return new String(BaseEncoding.base64().decode(input), Charsets.UTF_8);
            }
          };
    
      private static final EntryTransformer<String, String, String> DECODE_ENTRY_TRANSFORMER =
          new EntryTransformer<String, String, String>() {
            @Override
            public String transformEntry(String key, String value) {
              return DECODE_FUNCTION.apply(value);
            }
          };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AsyncFunction.java

     */
    
    package com.google.common.util.concurrent;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.concurrent.Future;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Transforms a value, possibly asynchronously. For an example usage and more information, see
     * {@link Futures#transformAsync(ListenableFuture, AsyncFunction, Executor)}.
     *
     * @author Chris Povirk
     * @since 11.0
     */
    @GwtCompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sun Jun 20 10:45:35 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

        Table<String, Integer, String> table = HashBasedTable.create();
        checkArgument(data.length % 3 == 0);
        for (int i = 0; i < data.length; i += 3) {
          String value = (data[i + 2] == null) ? null : (data[i + 2] + "transformed");
          table.put((String) data[i], (Integer) data[i + 1], value);
        }
        return Tables.transformValues(table, FIRST_CHARACTER);
      }
    
      // Null support depends on the underlying table and function.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Collections2.java

       * fromCollection} supports them.
       *
       * <p>The returned collection isn't threadsafe or serializable, even if {@code fromCollection} is.
       *
       * <p>When a live view is <i>not</i> needed, it may be faster to copy the transformed collection
       * and use the copy.
       *
       * <p>If the input {@code Collection} is known to be a {@code List}, consider {@link
       * Lists#transform}. If only an {@code Iterable} is available, use {@link Iterables#transform}.
    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/src/com/google/common/reflect/TypeResolver.java

       * List<A extends String>}, we need to compare that {@code <A extends B>} is unequal to {@code <A
       * extends String>} in order to decide to use the transformed type instead of the original type.
       */
      static final class TypeVariableKey {
        private final TypeVariable<?> var;
    
        TypeVariableKey(TypeVariable<?> var) {
          this.var = checkNotNull(var);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            output.cancel(false);
            throw new MyRuntimeException();
          }
        }
        Transformer transformer = new Transformer();
        SettableFuture<Object> input = SettableFuture.create();
    
        ListenableFuture<Object> output = transform(input, transformer, directExecutor());
        transformer.output = output;
    
        input.set("foo");
        assertTrue(output.isCancelled());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapsTest.java

        // objectKeyed = transformEntries(map6, transformer);
        // objectKeyed = transformEntries(map8, transformer);
        // objectKeyed = transformEntries(map9, transformer);
        // numberKeyed = transformEntries(map8, transformer);
        // numberKeyed = transformEntries(map9, transformer);
    
        // Can't loosen the value type:
        // Map<Number, Number> looseValued1 = transformEntries(map5, transformer);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MapsTest.java

        // objectKeyed = transformEntries(map6, transformer);
        // objectKeyed = transformEntries(map8, transformer);
        // objectKeyed = transformEntries(map9, transformer);
        // numberKeyed = transformEntries(map8, transformer);
        // numberKeyed = transformEntries(map9, transformer);
    
        // Can't loosen the value type:
        // Map<Number, Number> looseValued1 = transformEntries(map5, transformer);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            output.cancel(false);
            throw new MyRuntimeException();
          }
        }
        Transformer transformer = new Transformer();
        SettableFuture<Object> input = SettableFuture.create();
    
        ListenableFuture<Object> output = transform(input, transformer, directExecutor());
        transformer.output = output;
    
        input.set("foo");
        assertTrue(output.isCancelled());
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

       * method wraps the elements in the input sets (which may contain null) as Optionals, calls
       * Sets.cartesianProduct with those, then transforms the result to unwrap the Optionals.
       */
      private Iterable<List<Object>> buildCartesianProduct(Set<?>... sets) {
        List<Set<Optional<?>>> optionalSets = Lists.newArrayListWithExpectedSize(sets.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top