Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 60 for OK (0.19 sec)

  1. guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

          this.interruptee = interruptee;
        }
    
        @Override
        public void run() {
          while (true) {
            try {
              Thread.sleep(everyMillis);
            } catch (InterruptedException e) {
              // ok. just stop sleeping.
            }
            if (shouldStop) {
              break;
            }
            interruptee.interrupt();
          }
        }
    
        void stopInterrupting() {
          shouldStop = true;
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (1)
  2. guava-testlib/src/com/google/common/testing/GcFinalization.java

            future.get(1L, SECONDS);
            return;
          } catch (CancellationException | ExecutionException ok) {
            return;
          } catch (InterruptedException ie) {
            throw new RuntimeException("Unexpected interrupt while waiting for future", ie);
          } catch (TimeoutException tryHarder) {
            /* OK */
          }
        } while (System.nanoTime() - deadline < 0);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

          getReadyToExpandTo(size + n);
          /*
           * The following call is not statically checked, since arraycopy accepts plain Object for its
           * parameters. If it were statically checked, the checker would still be OK with it, since
           * we're copying into a `contents` array whose type allows it to contain nulls. Still, it's
           * worth noting that we promise not to put nulls into the array in the first `size` elements.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  4. guava-tests/test/com/google/common/graph/EndpointPairTest.java

        assertThat(edges).hasSize(2);
        assertThat(edges).contains(EndpointPair.ordered(N1, N1));
        assertThat(edges).contains(EndpointPair.ordered(N1, N2));
    
        // unordered endpoints not OK for directed graph (undefined behavior)
        assertThat(edges).doesNotContain(EndpointPair.unordered(N1, N2));
    
        assertThat(edges).doesNotContain(EndpointPair.ordered(N2, N1)); // wrong order
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

        assertThat(edges).hasSize(2);
        assertThat(edges).contains(EndpointPair.ordered(N1, N1));
        assertThat(edges).contains(EndpointPair.ordered(N1, N2));
    
        // unordered endpoints not OK for directed graph (undefined behavior)
        assertThat(edges).doesNotContain(EndpointPair.unordered(N1, N2));
    
        assertThat(edges).doesNotContain(EndpointPair.ordered(N2, N1)); // wrong order
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

          fail("no exception thrown");
        } catch (NullPointerException expected) {
          verifyComplexMessage(expected);
        }
      }
    
      public void testCheckElementIndex_ok() {
        assertEquals(0, Preconditions.checkElementIndex(0, 1));
        assertEquals(0, Preconditions.checkElementIndex(0, 2));
        assertEquals(1, Preconditions.checkElementIndex(1, 2));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/MapRetrievalCache.java

        // in combination with immutable cache entries, will ensure a thread-safe cache.
        CacheEntry<K, V> entry;
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        entry = cacheEntry1;
        if (entry != null && entry.key == key) {
          return entry.value;
        }
        entry = cacheEntry2;
        if (entry != null && entry.key == key) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 3.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/net/InetAddressesTest.java

        // Shouldn't hit DNS, because it's an IP string literal.
        InetAddress ipv4Addr;
        try {
          ipv4Addr = InetAddress.getByName(ipStr);
        } catch (UnknownHostException e) {
          // OK: this is probably Android, which is stricter.
          return;
        }
        assertEquals(ipv4Addr, InetAddresses.forString(ipStr));
        assertTrue(InetAddresses.isInetAddress(ipStr));
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        } catch (IllegalStateException e) {
          /* expected */
        }
    
        assertEquals(
            "After remove() throws exception, peek should still be ok", "B", peekingIterator.peek());
    
        /* Should recover to be able to remove() after next(). */
        assertEquals("B", peekingIterator.next());
        peekingIterator.remove();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        // Shouldn't hit DNS, because it's an IP string literal.
        InetAddress ipv4Addr;
        try {
          ipv4Addr = InetAddress.getByName(ipStr);
        } catch (UnknownHostException e) {
          // OK: this is probably Android, which is stricter.
          return;
        }
        assertEquals(ipv4Addr, InetAddresses.forString(ipStr));
        assertTrue(InetAddresses.isInetAddress(ipStr));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
Back to top