Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 424 for Watch (0.42 sec)

  1. android/guava-tests/test/com/google/common/base/AsciiTest.java

        try {
          Ascii.truncate("foobar", 2, "...");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", 8, "1234567890");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", -1, "...");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

                    return values().asList().get(index + 1);
                  });
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testReplaceAll_unsupportedNoOpFunction() {
        try {
          getMap().replaceAll((K k, V v) -> v);
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 4.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

        try {
          return MessageDigest.getInstance(algorithmName);
        } catch (NoSuchAlgorithmException e) {
          throw new AssertionError(e);
        }
      }
    
      @Override
      public Hasher newHasher() {
        if (supportsClone) {
          try {
            return new MessageDigestHasher((MessageDigest) prototype.clone(), bytes);
          } catch (CloneNotSupportedException e) {
            // falls through
          }
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

        try {
          Iterator<E> iterator = collection.iterator();
          assertTrue(collection.removeIf(Predicate.isEqual(samples.e0())));
          iterator.next();
          fail("Expected ConcurrentModificationException");
        } catch (ConcurrentModificationException expected) {
          // success
        }
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRemoveIf_unsupportedEmptyCollection() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

          fail("expected to be interrupted");
        } catch (InterruptedException expected) {
        } catch (TimeoutException e) {
          throw new RuntimeException(e);
        }
    
        // we were interrupted, but it's been cleared now
        assertFalse(Thread.interrupted());
    
        assertFalse(sleeper.completed);
        try {
          assertTrue(delayedFuture.get());
        } catch (InterruptedException e) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/StopwatchTest.java

          stopwatch.start();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        try {
          stopwatch.stop();
          fail();
        } catch (IllegalStateException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingQueue.java

       * you may wish to override {@link #offer} to forward to this implementation.
       *
       * @since 7.0
       */
      protected boolean standardOffer(@ParametricNullness E e) {
        try {
          return add(e);
        } catch (IllegalStateException caught) {
          return false;
        }
      }
    
      /**
       * A sensible definition of {@link #peek} in terms of {@link #element}. If you override {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Closeables.java

       */
      public static void close(@CheckForNull Closeable closeable, boolean swallowIOException)
          throws IOException {
        if (closeable == null) {
          return;
        }
        try {
          closeable.close();
        } catch (IOException e) {
          if (swallowIOException) {
            logger.log(Level.WARNING, "IOException thrown while closing Closeable.", e);
          } else {
            throw e;
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ClassPathUtil.java

          try {
            try {
              urls.add(new File(entry).toURI().toURL());
            } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
          } catch (MalformedURLException e) {
            AssertionError error = new AssertionError("malformed class path entry: " + entry);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 13 20:26:15 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

       */
      @Override
      public void testRemove() {
        final Map<String, Collection<Integer>> map;
        final String keyToRemove;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
        keyToRemove = map.keySet().iterator().next();
        if (supportsRemove) {
          int initialSize = map.size();
          map.get(keyToRemove);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top