Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 607 for Sample (0.2 sec)

  1. guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java

    import java.util.List;
    
    /**
     * A generator using sample elements whose hash codes all collide badly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestCollidingSetGenerator implements TestSetGenerator<Object> {
      @Override
      public SampleElements<Object> samples() {
        return new Colliders();
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/AnEnum.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * A sample enumerated type we use for testing.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public enum AnEnum {
      A,
      B,
      C,
      D,
      E,
      F
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 854 bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/TestQueueGenerator.java

    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Queue;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Creates queues, containing sample elements, to be tested.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface TestQueueGenerator<E extends @Nullable Object> extends TestCollectionGenerator<E> {
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/TestMultisetGenerator.java

    import com.google.common.collect.Multiset;
    import com.google.common.collect.testing.TestCollectionGenerator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Creates multisets, containing sample elements, to be tested.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface TestMultisetGenerator<E extends @Nullable Object>
        extends TestCollectionGenerator<E> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java

    /**
     * Creates collections containing unhashable sample elements, to be tested.
     *
     * @author Regina O'Dell
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestUnhashableCollectionGenerator<T extends Collection<UnhashableObject>>
        implements TestCollectionGenerator<UnhashableObject> {
      @Override
      public SampleElements<UnhashableObject> samples() {
        return new Unhashables();
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/math/LessThanBenchmark.java

      @BeforeExperiment
      void setUp() {
        Random random = new Random(randomSeed);
        xInts = new int[SAMPLE_SIZE];
        yInts = new int[SAMPLE_SIZE];
        xLongs = new long[SAMPLE_SIZE];
        yLongs = new long[SAMPLE_SIZE];
        constant = new int[SAMPLE_SIZE];
        for (int i = 0; i < SAMPLE_SIZE; i++) {
          xInts[i] = random.nextInt(Integer.MAX_VALUE);
          yInts[i] = random.nextInt(Integer.MAX_VALUE);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

        super.setUp();
        service = SimpleTimeLimiter.create(executor);
      }
    
      public void testNewProxy_goodMethodWithEnoughTime() throws Exception {
        SampleImpl target = new SampleImpl(DELAY_MS);
        Sample proxy = service.newProxy(target, Sample.class, ENOUGH_MS, MILLISECONDS);
        Stopwatch stopwatch = Stopwatch.createStarted();
    
        String result = proxy.sleepThenReturnInput("x");
    
        assertThat(result).isEqualTo("x");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

      @Param({"16384"})
      int charCount;
    
      @Param({"MURMUR3_32", "MURMUR3_128", "SHA1"})
      HashFunctionEnum hashFunctionEnum;
    
      private String[] strings;
    
      static final int SAMPLES = 0x100;
      static final int SAMPLE_MASK = 0xFF;
    
      /**
       * Compute arrays of valid unicode text, and store it in 3 forms: byte arrays, Strings, and
       * StringBuilders (in a CharSequence[] to make it a little harder for the JVM).
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/math/LessThanBenchmark.java

      @BeforeExperiment
      void setUp() {
        Random random = new Random(randomSeed);
        xInts = new int[SAMPLE_SIZE];
        yInts = new int[SAMPLE_SIZE];
        xLongs = new long[SAMPLE_SIZE];
        yLongs = new long[SAMPLE_SIZE];
        constant = new int[SAMPLE_SIZE];
        for (int i = 0; i < SAMPLE_SIZE; i++) {
          xInts[i] = random.nextInt(Integer.MAX_VALUE);
          yInts[i] = random.nextInt(Integer.MAX_VALUE);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

    import java.util.Arrays;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A container class for the five sample elements we need for testing.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class SampleElements<E extends @Nullable Object> implements Iterable<E> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top