Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,900 for throwIt (0.18 sec)

  1. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       * null will be returned.
       *
       * @throws ParameterNotInstantiableException if the static methods cannot be invoked because the
       *     default value of a parameter cannot be determined.
       * @throws IllegalAccessException if the class isn't public or is nested inside a non-public
       *     class, preventing its methods from being accessible.
       * @throws InvocationTargetException if a static method threw exception.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteStreams.java

       * @param len an int specifying the number of bytes to read.
       * @throws EOFException if this stream reaches the end before reading all the bytes.
       * @throws IOException if an I/O error occurs.
       */
      public static void readFully(InputStream in, byte[] b, int off, int len) throws IOException {
        int read = read(in, b, off, len);
        if (read != len) {
          throw new EOFException(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        final int throwAfterCount;
        final RuntimeException thrown;
        int count;
    
        ThrowingRunnable(int throwAfterCount, RuntimeException thrown) {
          this.throwAfterCount = throwAfterCount;
          this.thrown = thrown;
        }
    
        @Override
        public void run() {
          if (++count >= throwAfterCount) {
            throw thrown;
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (3)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         * available.
         *
         * @throws InterruptedException if the current thread was interrupted before or during the call
         *     (optional but recommended).
         * @throws CancellationException {@inheritDoc}
         */
        @CanIgnoreReturnValue
        @Override
        public V get(long timeout, TimeUnit unit)
            throws InterruptedException, TimeoutException, ExecutionException {
          return sync.get(unit.toNanos(timeout));
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 13.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         * available.
         *
         * @throws InterruptedException if the current thread was interrupted before or during the call
         *     (optional but recommended).
         * @throws CancellationException {@inheritDoc}
         */
        @CanIgnoreReturnValue
        @Override
        public V get(long timeout, TimeUnit unit)
            throws InterruptedException, TimeoutException, ExecutionException {
          return sync.get(unit.toNanos(timeout));
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 13.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         *
         * @throws ExecutionException if {@code closingFuture} is a failed step
         * @throws CancellationException if the {@code closingFuture}'s future was cancelled
         * @throws IllegalArgumentException if {@code closingFuture} is not one of the futures passed to
         *     {@link #whenAllComplete(Iterable)} or {@link #whenAllComplete(Iterable)}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       * performance for unescaped strings (as measured by {@code CharEscapersBenchmark}).
       *
       * @param string the literal string to be escaped
       * @return the escaped form of {@code string}
       * @throws NullPointerException if {@code string} is null
       * @throws IllegalArgumentException if invalid surrogate characters are encountered
       */
      @Override
      public String escape(String string) {
        checkNotNull(string);
        int end = string.length();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 13.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/PreconditionsTest.java

          fail("no exception thrown");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckArgument_simpleMessage_success() {
        Preconditions.checkArgument(true, IGNORE_ME);
      }
    
      public void testCheckArgument_simpleMessage_failure() {
        try {
          Preconditions.checkArgument(false, new Message());
          fail("no exception thrown");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

          fail("no exception thrown");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckArgument_simpleMessage_success() {
        Preconditions.checkArgument(true, IGNORE_ME);
      }
    
      public void testCheckArgument_simpleMessage_failure() {
        try {
          Preconditions.checkArgument(false, new Message());
          fail("no exception thrown");
    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)
  10. guava-testlib/src/com/google/common/testing/ClusterException.java

       * added.
       *
       * @throws NullPointerException if {@code exceptions} is null
       * @throws IllegalArgumentException if {@code exceptions} is empty
       */
      static RuntimeException create(Collection<? extends Throwable> exceptions) {
        if (exceptions.size() == 0) {
          throw new IllegalArgumentException("Can't create an ExceptionCollection with no exceptions");
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top