- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 2,240 for throwIf (0.04 seconds)
-
guava/src/com/google/common/cache/AbstractCache.java
} } @Override public void invalidateAll() { throw new UnsupportedOperationException(); } @Override public CacheStats stats() { throw new UnsupportedOperationException(); } @Override @J2ktIncompatible // Thread safety complexity public ConcurrentMap<K, V> asMap() { throw new UnsupportedOperationException(); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 9.2K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java
return super.toString() + "[status=SUCCESS, result=[" + value + "]]"; } static final class ImmediateFailedFuture<V extends @Nullable Object> extends TrustedFuture<V> { ImmediateFailedFuture(Throwable thrown) { setException(thrown); } } static final class ImmediateCancelledFuture<V extends @Nullable Object> extends TrustedFuture<V> { static final @Nullable ImmediateCancelledFuture<Object> INSTANCE =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Files.java
* * @param file the file to read from * @return a byte array containing all the bytes from file * @throws IllegalArgumentException if the file is bigger than the largest possible byte array * (2^31 - 1) * @throws IOException if an I/O error occurs */ public static byte[] toByteArray(File file) throws IOException { return asByteSource(file).read(); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jan 05 22:13:21 GMT 2026 - 32.8K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Preconditions.java
* instead. However, note that {@code checkIndex()} throws {@code IndexOutOfBoundsException} when * {@code size} is negative, while this method throws {@code IllegalArgumentException}. * * @param index a user-supplied index identifying a position in an array, list or string * @param size the size of that array, list or string * @return the value of {@code index}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableBiMap.java
final ImmutableSet<V> createValues() { throw new AssertionError("should never be called"); } /** * Guaranteed to throw an exception and leave the bimap unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */ @CanIgnoreReturnValue @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 22.7K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
} catch (final IOException e) { throw new IORuntimeException(e); } } /** * Reads the contents of a file into a byte array and returns it. * <p> * <strong>Note:</strong> This method loads the entire file into memory. * For files larger than {@value #MAX_BUF_SIZE} bytes (10MB), an * {@link IORuntimeException} will be thrown to prevent OutOfMemoryError.
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/Cache.java
* {@code null}; it may either return a non-null value or throw an exception. * * <p>No observable state associated with this cache is modified until loading completes. * * @throws ExecutionException if a checked exception was thrown while loading the value * @throws UncheckedExecutionException if an unchecked exception was thrown while loading the * value * @throws ExecutionError if an error was thrown while loading the valueCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 8.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
} public void testBulkLoad_extra() throws ExecutionException { CacheLoader<Object, Object> loader = new CacheLoader<Object, Object>() { @Override public Object load(Object key) throws Exception { return new Object(); } @Override public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 91K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
* throwing exceptions like {@link NoSuchElementException} at the appropriate times, it throws * {@link PermittedMetaException} instances, which wrap a set of all exceptions that the iterator * could throw during the invocation of that method. This is necessary because, e.g., a call to * {@code iterator().remove()} of an unmodifiable list could throw either {@linkCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 21.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/JobExecutorTest.java
} @Test public void test_shutdownListener_exceptionHandling() { // Test exception thrown in shutdown listener jobExecutor.addShutdownListener(new ShutdownListener() { @Override public void onShutdown() { throw new RuntimeException("Test exception"); } }); try { jobExecutor.shutdown();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 9.4K bytes - Click Count (0)