Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,270 for throw (0.17 sec)

  1. android/guava-tests/test/com/google/common/io/CloserTest.java

          this.closeable = closeable;
          this.thrown = thrown;
          this.suppressed = suppressed;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Suppression) {
            Suppression other = (Suppression) obj;
            return closeable.equals(other.closeable)
                && thrown.equals(other.thrown)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        }
    
        @Override
        public List<Runnable> shutdownNow() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public <T> Future<T> submit(Callable<T> task) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public Future<?> submit(Runnable task) {
          throw new UnsupportedOperationException();
        }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 7.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                            throw new UnsupportedOperationException();
                          }
    
                          @Override
                          public Iterator<String> iterator() {
                            throw new UnsupportedOperationException();
                          }
    
                          @Override
                          public boolean removeAll(Collection<?> collection) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/AbstractCache.java

          invalidate(key);
        }
      }
    
      @Override
      public void invalidateAll() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public CacheStats stats() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public ConcurrentMap<K, V> asMap() {
        throw new UnsupportedOperationException();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableTable.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final void putAll(Table<? extends R, ? extends C, ? extends V> table) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the table unmodified.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 17.3K bytes
    - Viewed (0)
  6. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java

          throw new UnsupportedOperationException();
        }
    
        @Override
        public void shutdown() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public List<Runnable> shutdownNow() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean isShutdown() {
          throw new UnsupportedOperationException();
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 17 20:45:59 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Joiner.java

       * Iterable)}, except that it does not throw {@link IOException}.
       *
       * @since 11.0
       */
      @CanIgnoreReturnValue
      public final StringBuilder appendTo(
          StringBuilder builder, Iterator<? extends @Nullable Object> parts) {
        try {
          appendTo((Appendable) builder, parts);
        } catch (IOException impossible) {
          throw new AssertionError(impossible);
        }
        return builder;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      private static <X extends Exception> void wrapAndThrowExceptionOrError(
          Throwable cause, Class<X> exceptionClass) throws X {
        if (cause instanceof Error) {
          throw new ExecutionError((Error) cause);
        }
        if (cause instanceof RuntimeException) {
          throw new UncheckedExecutionException(cause);
        }
        throw newWithCause(exceptionClass, cause);
      }
    
      /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        public E next() {
          // ...but throw an unchecked exception when you ask for it.
          if (!iterator.hasNext()) {
            throw new ThrowsAtEndException();
          }
          return iterator.next();
        }
    
        @Override
        public void remove() {
          iterator.remove();
        }
      }
    
      public void testPeekingIteratorDoesntAdvancePrematurely() throws Exception {
        /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top