- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 277 for IllegalStateException (0.17 sec)
-
guava/src/com/google/common/io/ByteStreams.java
try { input.readFully(b); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public void readFully(byte b[], int off, int len) { try { input.readFully(b, off, len); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public int skipBytes(int n) { try {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 29.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java
if (!super.setException(new WrapperException(checkNotNull(e)))) { throw new IllegalStateException("Future was already complete: " + this); } } public void complete(Error e) { if (!super.setException(new WrapperException(checkNotNull(e)))) { throw new IllegalStateException("Future was already complete: " + this); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 12 20:02:10 UTC 2018 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* high wastes memory. * * @return this {@code CacheBuilder} instance (for chaining) * @throws IllegalArgumentException if {@code initialCapacity} is negative * @throws IllegalStateException if an initial capacity was already set */ @CanIgnoreReturnValue public CacheBuilder<K, V> initialCapacity(int initialCapacity) { checkState( this.initialCapacity == UNSET_INT,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 52K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
} } return suite; } /** Throw {@link IllegalStateException} if {@link #createTestSuite()} can't be called yet. */ protected void checkCanCreate() { if (subjectGenerator == null) { throw new IllegalStateException("Call using() before createTestSuite()."); } if (name == null) { throw new IllegalStateException("Call named() before createTestSuite()."); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 10.4K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/Network.java
* * <p>If {@code node} is removed from the network after this method is called, the {@code Set} * {@code view} returned by this method will be invalidated, and will throw {@code * IllegalStateException} if it is accessed in any way, with the following exceptions: * * <ul> * <li>{@code view.equals(view)} evaluates to {@code true} (but any other {@code equals()}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 10 15:41:27 UTC 2024 - 21.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java
assertThrows(IllegalStateException.class, n1InEdges::size)); assertNodeRemovedFromGraphErrorMessage( assertThrows(IllegalStateException.class, n1OutEdges::size)); assertEdgeRemovedFromGraphErrorMessage( assertThrows(IllegalStateException.class, e12AdjacentEdges::size)); assertNodeRemovedFromGraphErrorMessage( assertThrows(IllegalStateException.class, n12EdgesConnecting::size));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 32.7K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/InvalidatableSet.java
import com.google.common.base.Supplier; import com.google.common.collect.ForwardingSet; import java.util.Set; /** * A subclass of `ForwardingSet` that throws `IllegalStateException` on invocation of any method * (except `hashCode` and `equals`) if the provided `Supplier` returns false. */ @ElementTypesAreNonnullByDefault final class InvalidatableSet<E> extends ForwardingSet<E> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 1.8K bytes - Viewed (0) -
guava/src/com/google/common/math/PairedStatsAccumulator.java
* * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link * Double#NEGATIVE_INFINITY}, or {@link Double#NaN}) then the result is {@link Double#NaN}. * * @throws IllegalStateException if the dataset is empty */ public double populationCovariance() { checkState(count() != 0); return sumOfProductsOfDeltas / count(); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 17:02:53 UTC 2023 - 10.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractIterator.java
* {@code next} invocation that invoked this method. Any further attempts to use the iterator will * result in an {@link IllegalStateException}. * * <p>The implementation of this method may not invoke the {@code hasNext}, {@code next}, or * {@link #peek()} methods on this instance; if it does, an {@code IllegalStateException} will * result. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Mar 18 02:04:10 UTC 2022 - 6.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/StopwatchTest.java
stopwatch.start(); assertThrows(IllegalStateException.class, stopwatch::start); assertTrue(stopwatch.isRunning()); } public void testStop() { stopwatch.start(); assertSame(stopwatch, stopwatch.stop()); assertFalse(stopwatch.isRunning()); } public void testStop_new() { assertThrows(IllegalStateException.class, stopwatch::stop); assertFalse(stopwatch.isRunning()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 5.7K bytes - Viewed (0)