Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 72 for reported (3.88 sec)

  1. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          Segment<Object, Object> segment = map.segments[0];
    
          if (segment.recencyQueue != DISCARDING_QUEUE) {
            Object keyOne = new Object();
            Object valueOne = new Object();
    
            // repeated get of the same key
    
            map.put(keyOne, valueOne);
            assertTrue(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) {
              map.get(keyOne);
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSetMultimap.java

        builder.put(k1, v1);
        return builder.build();
      }
    
      /**
       * Returns an immutable multimap containing the given entries, in order. Repeated occurrences of
       * an entry (according to {@link Object#equals}) after the first are ignored.
       */
      public static <K, V> ImmutableSetMultimap<K, V> of(K k1, V v1, K k2, V v2) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

    import java.util.Collections;
    import java.util.List;
    import java.util.Random;
    import java.util.RandomAccess;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /** Tests for repeated node and edge addition and removal in a {@link Network}. */
    @RunWith(JUnit4.class)
    
    public final class NetworkMutationTest {
      private static final int NUM_TRIALS = 5;
      private static final int NUM_NODES = 20;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

                    }
                  }
                });
    
        assertTrue(at.compareAndSet(1.0, 2.0));
        awaitTermination(t);
        assertBitEquals(3.0, at.get());
      }
    
      /** repeated weakCompareAndSet succeeds in changing value when equal to expected */
      public void testWeakCompareAndSet() {
        double prev = Math.E;
        double unused = Math.E + Math.PI;
        AtomicDouble at = new AtomicDouble(prev);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

      }
    
      public void testServiceStartupTimes_selfStartingServices() {
        // This tests to ensure that:
        // 1. service times are accurate when the service is started by the manager
        // 2. service times are recorded when the service is not started by the manager (but they may
        // not be accurate).
        final Service b =
            new NoOpDelayedService(353) {
              @Override
              protected void doStart() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Collections2.java

          this.inputList = ImmutableList.sortedCopyOf(comparator, input);
          this.comparator = comparator;
          this.size = calculateSize(inputList, comparator);
        }
    
        /**
         * The number of permutations with repeated elements is calculated as follows:
         *
         * <ul>
         *   <li>For an empty list, it is 1 (base case).
         *   <li>When r numbers are added to a list of n-r elements, the number of permutations is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IterablesTest.java

        }
      }
    
      public void testConcatPeformingFiniteCycle() {
        Iterable<Integer> iterable = asList(1, 2, 3);
        int n = 4;
        Iterable<Integer> repeated = Iterables.concat(Collections.nCopies(n, iterable));
        assertThat(repeated).containsExactly(1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3).inOrder();
      }
    
      public void testPartition_badSize() {
        Iterable<Integer> source = Collections.singleton(1);
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java

     * features}, the features supported by the iterator; and {@code expectedElements}, the elements the
     * iterator should return in order.
     *
     * <p>The items in {@code elementsToInsert} will be repeated if {@code steps} is larger than the
     * number of provided elements.
     *
     * @author Chris Povirk
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ListIteratorTester<E extends @Nullable Object>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java

     * features}, the features supported by the iterator; and {@code expectedElements}, the elements the
     * iterator should return in order.
     *
     * <p>The items in {@code elementsToInsert} will be repeated if {@code steps} is larger than the
     * number of provided elements.
     *
     * @author Chris Povirk
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ListIteratorTester<E extends @Nullable Object>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

                    }
                  }
                });
    
        assertTrue(at.compareAndSet(1.0, 2.0));
        awaitTermination(t);
        assertBitEquals(3.0, at.get());
      }
    
      /** repeated weakCompareAndSet succeeds in changing value when equal to expected */
      public void testWeakCompareAndSet() {
        double prev = Math.E;
        double unused = Math.E + Math.PI;
        AtomicDouble at = new AtomicDouble(prev);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 10.2K bytes
    - Viewed (0)
Back to top