Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for pool (0.14 sec)

  1. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

    @RunWith(JUnit4.class)
    
    public final class NetworkMutationTest {
      private static final int NUM_TRIALS = 5;
      private static final int NUM_NODES = 20;
      private static final int NUM_EDGES = 100;
      private static final int NODE_POOL_SIZE = 1000; // must be >> NUM_NODES
    
      @Test
      public void directedNetwork() {
        testNetworkMutation(NetworkBuilder.directed());
      }
    
      @Test
      public void undirectedNetwork() {
    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)
  2. guava-tests/test/com/google/common/graph/NetworkMutationTest.java

    @RunWith(JUnit4.class)
    
    public final class NetworkMutationTest {
      private static final int NUM_TRIALS = 5;
      private static final int NUM_NODES = 20;
      private static final int NUM_EDGES = 100;
      private static final int NODE_POOL_SIZE = 1000; // must be >> NUM_NODES
    
      @Test
      public void directedNetwork() {
        testNetworkMutation(NetworkBuilder.directed());
      }
    
      @Test
      public void undirectedNetwork() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        }
      }
    
      void checkEmpty(BlockingQueue<?> q) {
        try {
          assertTrue(q.isEmpty());
          assertEquals(0, q.size());
          assertNull(q.peek());
          assertNull(q.poll());
          assertNull(q.poll(0, MILLISECONDS));
          assertEquals("[]", q.toString());
          assertTrue(Arrays.equals(q.toArray(), new Object[0]));
          assertFalse(q.iterator().hasNext());
          try {
            q.element();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        }
      }
    
      void checkEmpty(BlockingQueue<?> q) {
        try {
          assertTrue(q.isEmpty());
          assertEquals(0, q.size());
          assertNull(q.peek());
          assertNull(q.poll());
          assertNull(q.poll(0, MILLISECONDS));
          assertEquals("[]", q.toString());
          assertTrue(Arrays.equals(q.toArray(), new Object[0]));
          assertFalse(q.iterator().hasNext());
          try {
            q.element();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertTrue(Iterators.all(list.iterator(), predicate));
        list.add("pants");
        assertFalse(Iterators.all(list.iterator(), predicate));
      }
    
      public void testFind_firstElement() {
        Iterable<String> list = Lists.newArrayList("cool", "pants");
        Iterator<String> iterator = list.iterator();
        assertEquals("cool", Iterators.find(iterator, Predicates.equalTo("cool")));
        assertEquals("pants", iterator.next());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

              "www.rave.ca.",
              "cnn.ca",
              "ledger-enquirer.com",
              "it-trace.ch",
              "cool.dk",
              "cool.co.uk",
              "cool.de",
              "cool.es",
              "cool\uFF61fr", // Alternate dot character
              "cool.nl",
              "members.blah.nl.",
              "cool.se",
              "utenti.blah.it",
              "kt.co",
              "a\u7f51\u7edcA.\u7f51\u7edc.Cn" // "a网络A.网络.Cn"
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            assertFalse(map.containsValue(valueOne));
            assertNull(map.get(keyOne));
            assertEquals(1, map.size());
            assertNull(segment.getKeyReferenceQueueForTesting().poll());
          }
        }
      }
    
      public void testDrainValueReferenceQueueOnWrite() {
        for (MapMaker maker : allWeakValueStrengthMakers()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            assertFalse(map.containsValue(valueOne));
            assertNull(map.get(keyOne));
            assertEquals(1, map.size());
            assertNull(segment.getKeyReferenceQueueForTesting().poll());
          }
        }
      }
    
      public void testDrainValueReferenceQueueOnWrite() {
        for (MapMaker maker : allWeakValueStrengthMakers()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Hashing.java

       *       servers {@code alpha}, {@code bravo}, and {@code charlie} and you occasionally need to
       *       take each of the servers offline, {@code consistentHash} will be a poor fit: It provides
       *       no way for you to specify which of the three buckets is disappearing. Thus, if your
       *       buckets change from {@code [alpha, bravo, charlie]} to {@code [bravo, charlie]}, it will
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

         * not in {@link #nextElements}, this method throws an {@link UnknownElementException}.
         *
         * <p>This method is used when testing iterators without a known ordering. We poll the target
         * iterator's next element and pass it to the reference iterator through this method so it can
         * return the same element. This enables the assertion to pass and the reference iterator to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top