- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 173 for Hafner (0.21 sec)
-
android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
assertEquals("B", peekingIterator.peek()); /* Should complain on attempt to remove() after peek(). */ try { peekingIterator.remove(); fail("remove() should throw IllegalStateException after a peek()"); } catch (IllegalStateException e) { /* expected */ } assertEquals( "After remove() throws exception, peek should still be ok", "B", peekingIterator.peek());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 9K bytes - Viewed (0) -
guava/src/com/google/common/base/FinalizableReference.java
* Implemented by references that have code to run after garbage collection of their referents. * * @see FinalizableReferenceQueue * @author Bob Lee * @since 2.0 */ @DoNotMock("Use an instance of one of the Finalizable*Reference classes") @J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault public interface FinalizableReference { /**
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 23 15:09:35 GMT 2023 - 1.4K bytes - Viewed (1) -
android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java
* ListenableFutureTask}, {@link AbstractFuture}, and other utilities over creating plain {@code * Future} instances to be upgraded to {@code ListenableFuture} after the fact. */ public static <V extends @Nullable Object> ListenableFuture<V> listenInPoolThread( Future<V> future) { if (future instanceof ListenableFuture) { return (ListenableFuture<V>) future; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Dec 14 20:35:03 GMT 2023 - 7.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EmptyImmutableSetMultimap.java
* of common.collect a second time with the results of the first compilation on the classpath. Or * just back this out once we stop doing that (which we'll do after our internal GWT setup * changes). */ @Override public ImmutableMap<Object, Collection<Object>> asMap() { return super.asMap(); } private Object readResolve() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Aug 18 16:48:17 GMT 2022 - 1.7K bytes - Viewed (0) -
guava/src/com/google/common/base/internal/Finalizer.java
private final ReferenceQueue<Object> queue; // By preference, we will use the Thread constructor that has an `inheritThreadLocals` parameter. // But before Java 9, our only way not to inherit ThreadLocals is to zap them after the thread // is created, by accessing a private field. @CheckForNull private static final Constructor<Thread> bigThreadConstructor = getBigThreadConstructor(); @CheckForNull
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Aug 23 12:54:09 GMT 2023 - 9.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java
try { getQueue().offer(null); fail("offer(null) should throw"); } catch (NullPointerException expected) { } expectUnchanged(); expectNullMissingWhenNullUnsupported("Should not contain null after unsupported offer(null)"); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 2.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerTest.java
MapMaker maker = new MapMaker(); try { maker.initialCapacity(-1); fail(); } catch (IllegalArgumentException expected) { } } // TODO(cpovirk): enable when ready (apparently after a change to our GWT emulation) public void xtestInitialCapacity_setTwice() { MapMaker maker = new MapMaker().initialCapacity(16); try { // even to the same value is not allowed maker.initialCapacity(16);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java
break; } interruptee.interrupt(); } } void stopInterrupting() { shouldStop = true; } } /** Interrupts the current thread after sleeping for the specified delay. */ static void requestInterruptIn(final long time, final TimeUnit unit) { checkNotNull(unit); final Thread interruptee = Thread.currentThread(); new Thread(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
import java.util.Iterator; import org.checkerframework.checker.nullness.qual.Nullable; /** * An implementation of {@code Iterable} which throws an exception on all invocations of the {@link * #iterator()} method after the first, and whose iterator is always unmodifiable. * * <p>The {@code Iterable} specification does not make it absolutely clear what should happen on a * second invocation, so implementors have made various choices, including:
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LineBuffer.java
handleLine(line.toString(), separator); line = new StringBuilder(); sawReturn = false; return sawNewline; } /** * Subclasses must call this method after finishing character processing, in order to ensure that * any unterminated line in the buffer is passed to {@link #handleLine}. * * @throws IOException if an I/O error occurs */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 28 20:13:02 GMT 2023 - 3.9K bytes - Viewed (0)