Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for function (0.05 sec)

  1. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

      private static <T> void testSuccessfulForwarding(
          Class<T> interfaceType, Method method, Function<? super T, ? extends T> wrapperFunction) {
        new InteractionTester<T>(interfaceType, method).testInteraction(wrapperFunction);
      }
    
      private static <T> void testExceptionPropagation(
          Class<T> interfaceType, Method method, Function<? super T, ? extends T> wrapperFunction) {
        RuntimeException exception = new RuntimeException();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

    import com.google.caliper.api.SkipThisScenarioException;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.LinkedList;
    import java.util.NoSuchElementException;
    import java.util.function.Supplier;
    import java.util.stream.Stream;
    
    /**
     * Test stream operation speed.
     *
     * @author Louis Wasserman
     */
    public class StreamsBenchmark {
      @Param({"1", "10", "100", "1000", "10000"})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/IndexedImmutableSet.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.util.Spliterator;
    import java.util.function.Consumer;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    abstract class IndexedImmutableSet<E> extends ImmutableSet.CachingAsList<E> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

        }
        return result;
      }
    
      // Helpers + main
    
      private byte runHashFunction(int reps, HashFunction hashFunction) {
        byte result = 0x01;
        // Trick the JVM to prevent it from using the hash function non-polymorphically
        result ^= Hashing.crc32().hashInt(reps).asBytes()[0];
        result ^= Hashing.adler32().hashInt(reps).asBytes()[0];
        result ^= Hashing.fingerprint2011().hashInt(reps).asBytes()[0];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 16:53:43 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/FunctionalEquivalence.java

          Function<? super F, ? extends @Nullable T> function, Equivalence<T> resultEquivalence) {
        this.function = checkNotNull(function);
        this.resultEquivalence = checkNotNull(resultEquivalence);
      }
    
      @Override
      protected boolean doEquivalent(F a, F b) {
        return resultEquivalence.equivalent(function.apply(a), function.apply(b));
      }
    
      @Override
      protected int doHash(F a) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 01 19:48:29 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapsSortedTransformValuesTest.java

    import static com.google.common.collect.Maps.transformValues;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Functions;
    import java.util.SortedMap;
    
    /**
     * Tests for {@link Maps#transformValues(SortedMap, Function)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

    import static com.google.common.collect.Maps.transformValues;
    
    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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

      private static <T> void testSuccessfulForwarding(
          Class<T> interfaceType, Method method, Function<? super T, ? extends T> wrapperFunction) {
        new InteractionTester<T>(interfaceType, method).testInteraction(wrapperFunction);
      }
    
      private static <T> void testExceptionPropagation(
          Class<T> interfaceType, Method method, Function<? super T, ? extends T> wrapperFunction) {
        RuntimeException exception = new RuntimeException();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Predicate.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Determines a true or false value for a given input; a pre-Java-8 version of {@link
     * java.util.function.Predicate java.util.function.Predicate}.
     *
     * <p>The {@link Predicates} class provides common predicates and related utilities.
     *
     * <p>See the Guava User Guide article on <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. android/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 =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top