Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for integration (0.16 sec)

  1. android/guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

    import java.util.List;
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentSkipListMap;
    
    /**
     * A microbenchmark that tests the performance of get() and iteration on various map
     * implementations. Forked from {@link SetContainsBenchmark}.
     *
     * @author Nicholaus Shupe
     */
    public class MapBenchmark {
      @Param({"Hash", "LinkedHM", "MapMaker1", "Immutable"})
      private Impl impl;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/collect/PowerSetBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Set;
    
    /**
     * Very simple powerSet iteration benchmark.
     *
     * @author Kevin Bourrillion
     */
    public class PowerSetBenchmark {
      @Param({"2", "4", "8", "16"})
      int elements;
    
      Set<Set<Integer>> powerSet;
    
      @BeforeExperiment
      void setUp() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java

    import com.google.caliper.Param;
    import com.google.common.collect.BenchmarkHelpers.SetImpl;
    import com.google.common.collect.CollectionBenchmarkSampleData.Element;
    import java.util.Set;
    
    /**
     * Test iteration speed at various size for {@link Set} instances.
     *
     * @author Christopher Swenson
     */
    public class SetIterationBenchmark {
      @Param({
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

      public ValueGraphBuilder<N, V> expectedNodeCount(int expectedNodeCount) {
        this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount));
        return this;
      }
    
      /**
       * Specifies the order of iteration for the elements of {@link Graph#nodes()}.
       *
       * <p>The default value is {@link ElementOrder#insertion() insertion order}.
       */
      public <N1 extends N> ValueGraphBuilder<N1, V> nodeOrder(ElementOrder<N1> nodeOrder) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 8K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

            append = true;
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    
      /**
       * Starts with an empty delimiter and changes to the desired value at the end of the iteration.
       */
      @Benchmark
      int assignDelimiter(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          String delim = "";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Funnels.java

        }
    
        @Override
        public String toString() {
          return "Funnels.integerFunnel()";
        }
      }
    
      /**
       * Returns a funnel that processes an {@code Iterable} by funneling its elements in iteration
       * order with the specified funnel. No separators are added between the elements.
       *
       * @since 15.0
       */
      public static <E extends @Nullable Object> Funnel<Iterable<? extends E>> sequentialFunnel(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        for (Class<?> paramType : method.getParameterTypes()) {
          passedArgs.add(paramValues.generateFresh(paramType));
        }
        return passedArgs.toArray();
      }
    
      /** Tests a single interaction against a method. */
      private static final class InteractionTester<T> extends AbstractInvocationHandler {
    
        private final Class<T> interfaceType;
        private final Method method;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        for (Class<?> paramType : method.getParameterTypes()) {
          passedArgs.add(paramValues.generateFresh(paramType));
        }
        return passedArgs.toArray();
      }
    
      /** Tests a single interaction against a method. */
      private static final class InteractionTester<T> extends AbstractInvocationHandler {
    
        private final Class<T> interfaceType;
        private final Method method;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/ElementOrder.java

    import java.util.Comparator;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    
    /**
     * Used to represent the order of elements in a data structure that supports different options for
     * iteration order guarantees.
     *
     * <p>Example usage:
     *
     * <pre>{@code
     * MutableGraph<Integer> graph =
     *     GraphBuilder.directed().nodeOrder(ElementOrder.<Integer>natural()).build();
     * }</pre>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 6.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractIterator.java

        T result = uncheckedCastNullableTToT(next);
        next = null;
        return result;
      }
    
      /**
       * Returns the next element in the iteration without advancing the iteration, according to the
       * contract of {@link PeekingIterator#peek()}.
       *
       * <p>Implementations of {@code AbstractIterator} that wish to expose this functionality should
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
Back to top