Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Input (0.14 sec)

  1. 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) {
    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)
  2. android/guava/src/com/google/common/util/concurrent/Futures.java

       *
       * @param input the primary input {@code Future}
       * @param exceptionType the exception type that triggers use of {@code fallback}. The exception
       *     type is matched against the input's exception. "The input's exception" means the cause of
       *     the {@link ExecutionException} thrown by {@code input.get()} or, if {@code get()} throws a
    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)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

                Sets.filter(
                    Sets.powerSet(sampleSet),
                    new Predicate<Set<Integer>>() {
    
                      @Override
                      public boolean apply(Set<Integer> input) {
                        return input.size() == size;
                      }
                    });
            assertWithMessage("Sets.combinations(%s, %s)", sampleSet, k)
                .that(Sets.combinations(sampleSet, k))
    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/Sets.java

      private static final class PowerSet<E> extends AbstractSet<Set<E>> {
        final ImmutableMap<E, Integer> inputSet;
    
        PowerSet(Set<E> input) {
          checkArgument(
              input.size() <= 30, "Too many elements to create power set: %s > 30", input.size());
          this.inputSet = Maps.indexMap(input);
        }
    
        @Override
        public int size() {
          return 1 << inputSet.size();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. android/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) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Iterators.java

       * elements of each iterator in {@code inputs}. The input iterators are not polled until
       * necessary.
       *
       * <p>The returned iterator supports {@code remove()} when the corresponding input iterator
       * supports it. The methods of the returned iterator may throw {@code NullPointerException} if any
       * of the input iterators is null.
       */
      public static <T extends @Nullable Object> Iterator<T> concat(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Preconditions.java

     *   if (value < 0) {
     *     throw new IllegalArgumentException("input is negative: " + value);
     *   }
     *   // calculate square root
     * }
     * }</pre>
     *
     * <p>to be replaced with the more compact
     *
     * <pre>{@code
     * public static double sqrt(double value) {
     *   checkArgument(value >= 0, "input is negative: %s", value);
     *   // calculate square root
     * }
     * }</pre>
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        implements NavigableMap<K, V> {
      /**
       * Returns a {@link Collector} that accumulates elements into an {@code ImmutableSortedMap} whose
       * keys and values are the result of applying the provided mapping functions to the input
       * elements. The generated map is sorted by the specified comparator.
       *
       * <p>If the mapped keys contain duplicates (according to the specified comparator), an {@code
    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)
  9. android/guava/src/com/google/common/base/CharMatcher.java

       * }</pre>
       *
       * ... returns {@code "aaa"}.
       */
      public String retainFrom(CharSequence sequence) {
        return negate().removeFrom(sequence);
      }
    
      /**
       * Returns a string copy of the input character sequence, with each matching BMP character
       * replaced by a given replacement character. For example:
       *
       * <pre>{@code
       * CharMatcher.is('a').replaceFrom("radar", 'o')
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                executor);
        ClosingFuture<String> step3 =
            step2.transform(
                new ClosingFunction<String, String>() {
                  @Override
                  public String apply(DeferredCloser closer, String input) throws Exception {
                    closer.eventuallyClose(closeable3, closingExecutor);
                    return "value 3";
                  }
                },
                executor);
        Waiter step4Waiter = new Waiter();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top