Search Options

Results per page
Sort
Preferred Languages
Advance

Results 3231 - 3240 of 3,920 for extenders (0.05 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    @IgnoreJRERequirement // We opt into library desugaring for our tests.
    public class MapReplaceEntryTester<K, V> extends AbstractMapTester<K, V> {
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_supportedPresent() {
        try {
          assertTrue(getMap().replace(k0(), v0(), v3()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapAsMapGetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testPropagatesRemoveToMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        }
      }
    
      public static void main(String... args) throws Exception {
        new PrintEventsNonConcurrent().run();
      }
    
      private static final class PrintingEventListener extends EventListener {
        long callStartNanos;
    
        private void printEvent(String name) {
          long nowNanos = System.nanoTime();
          if (name.equals("callStart")) {
            callStartNanos = nowNanos;
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

    import java.io.ByteArrayInputStream;
    import java.util.Arrays;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link HashingInputStream}.
     *
     * @author Qian Huang
     */
    public class HashingInputStreamTest extends TestCase {
      private Hasher hasher;
      private HashFunction hashFunction;
      private static final byte[] testBytes = new byte[] {'y', 'a', 'm', 's'};
      private ByteArrayInputStream buffer;
    
      @SuppressWarnings("DoNotMock")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 02 16:24:50 UTC 2020
    - 5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/HashingTest.java

    import com.google.common.annotations.GwtCompatible;
    import junit.framework.TestCase;
    
    /** Tests for {@code Hashing}. */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class HashingTest extends TestCase {
      public void testSmear() {
        assertEquals(1459320713, smear(754102528));
        assertEquals(-160560296, smear(1234567890));
        assertEquals(-1017931171, smear(1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java

    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    @ElementTypesAreNonnullByDefault
    public class ConcurrentMapReplaceEntryTester<K, V> extends AbstractMapTester<K, V> {
      @Override
      protected ConcurrentMap<K, V> getMap() {
        return (ConcurrentMap<K, V>) super.getMap();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java

          return serviceName() + " " + state();
        }
      }
    
      /* use AbstractService for state management */
      private final Service delegate = new DelegateService();
    
      @WeakOuter
      private final class DelegateService extends AbstractService {
        @Override
        protected final void doStart() {
          MoreExecutors.renamingDecorator(executor(), threadNameSupplier)
              .execute(
                  () -> {
                    try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/StopwatchTest.java

    import com.google.common.testing.FakeTicker;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Stopwatch}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class StopwatchTest extends TestCase {
    
      private final FakeTicker ticker = new FakeTicker();
      private final Stopwatch stopwatch = new Stopwatch(ticker);
    
      public void testCreateStarted() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheManualTest.java

    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMap;
    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    public class CacheManualTest extends TestCase {
    
      public void testGetIfPresent() {
        Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build();
        CacheStats stats = cache.stats();
        assertEquals(0, stats.missCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

    import java.io.ByteArrayInputStream;
    import java.util.Arrays;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link HashingInputStream}.
     *
     * @author Qian Huang
     */
    public class HashingInputStreamTest extends TestCase {
      private Hasher hasher;
      private HashFunction hashFunction;
      private static final byte[] testBytes = new byte[] {'y', 'a', 'm', 's'};
      private ByteArrayInputStream buffer;
    
      @SuppressWarnings("DoNotMock")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 02 16:24:50 UTC 2020
    - 5K bytes
    - Viewed (0)
Back to top