Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 303 for function (0.2 sec)

  1. guava/src/com/google/common/base/Predicate.java

    /**
     * Legacy version of {@link java.util.function.Predicate java.util.function.Predicate}. Determines a
     * true or false value for a given input.
     *
     * <p>As this interface extends {@code java.util.function.Predicate}, an instance of this type may
     * be used as a {@code Predicate} directly. To use a {@code java.util.function.Predicate} where a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Functions;
    import java.util.Map;
    
    /**
     * Tests for {@link Maps#transformValues(Map, Function)}.
     *
     * @author Isaac Shum
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Collections2.java

          Collection<F> fromCollection, Function<? super F, T> function) {
        return new TransformedCollection<>(fromCollection, function);
      }
    
      static class TransformedCollection<F extends @Nullable Object, T extends @Nullable Object>
          extends AbstractCollection<T> {
        final Collection<F> fromCollection;
        final Function<? super F, ? extends 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)
  4. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        }
      }
    
      private static String encode(String str) {
        return BaseEncoding.base64().encode(str.getBytes(Charsets.UTF_8));
      }
    
      private static final Function<String, String> DECODE_FUNCTION =
          new Function<String, String>() {
            @Override
            public String apply(String input) {
              return new String(BaseEncoding.base64().decode(input), Charsets.UTF_8);
            }
          };
    
    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)
  5. guava-tests/test/com/google/common/base/OptionalTest.java

                          });
          fail("Should throw if Function returns null.");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testTransform_absent_functionReturnsNull() {
        assertEquals(
            Optional.absent(),
            Optional.absent()
                .transform(
                    (Function<Object, Object>)
                        new Function<Object, @Nullable Object>() {
    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)
  6. guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

    import com.google.common.base.Function;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Test cases for {@link Tables#transformValues}.
     *
     * @author Jared Levy
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class TablesTransformValuesTest extends AbstractTableTest<Character> {
    
      private static final Function<@Nullable String, @Nullable Character> FIRST_CHARACTER =
    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)
  7. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFluentFutureCatchingSpecialization.java

    package com.google.common.util.concurrent;
    
    import com.google.common.base.Function;
    import java.util.concurrent.Executor;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Hidden superclass of {@link FluentFuture} that provides us a place to declare special GWT
     * versions of the {@link FluentFuture#catching(Class, com.google.common.base.Function)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 08 20:30:27 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

      private static final String RESULT_DATA = "SUCCESS";
    
      private SettableFuture<String> outputFuture;
      // Signals that the function is waiting to complete
      private CountDownLatch funcIsWaitingLatch;
      // Signals the function so it will complete
      private CountDownLatch funcCompletionLatch;
    
      @Override
      protected ListenableFuture<String> buildChainingFuture(ListenableFuture<Integer> inputFuture) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Set;
    import java.util.Spliterator;
    import java.util.Spliterator.OfPrimitive;
    import java.util.function.Consumer;
    import java.util.function.Function;
    import java.util.function.Supplier;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tester for {@code Spliterator} implementations.
     *
     * @since 21.0
     */
    @GwtCompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/HashBiMap.java

        }
      }
    
      @Override
      public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) {
        checkNotNull(function);
        BiEntry<K, V> oldFirst = firstInKeyInsertionOrder;
        clear();
        for (BiEntry<K, V> entry = oldFirst; entry != null; entry = entry.nextInKeyInsertionOrder) {
          put(entry.key, function.apply(entry.key, entry.value));
        }
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
Back to top