- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for SynchronizedDeque (0.11 sec)
-
android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java
import java.util.Deque; import java.util.Iterator; import junit.framework.TestCase; import org.checkerframework.checker.nullness.qual.Nullable; /** * Tests for {@link Synchronized#deque} and {@link Queues#synchronizedDeque}. * * @author Kurt Alfred Kluever */ public class SynchronizedDequeTest extends TestCase { protected Deque<String> create() { TestDeque<String> inner = new TestDeque<>();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 7.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Queues.java
* * <p>It is imperative that the user manually synchronize on the returned deque when accessing any * of the deque's iterators: * * <pre>{@code * Deque<E> deque = Queues.synchronizedDeque(Queues.<E>newArrayDeque()); * ... * deque.add(element); // Needn't be in synchronized block * ... * synchronized (deque) { // Must synchronize on deque!
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 14:11:14 UTC 2024 - 18.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Queues.java
* * <p>It is imperative that the user manually synchronize on the returned deque when accessing any * of the deque's iterators: * * <pre>{@code * Deque<E> deque = Queues.synchronizedDeque(Queues.<E>newArrayDeque()); * ... * deque.add(element); // Needn't be in synchronized block * ... * synchronized (deque) { // Must synchronize on deque!
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 14:11:14 UTC 2024 - 18.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Synchronized.java
} static <E extends @Nullable Object> Deque<E> deque(Deque<E> deque, @CheckForNull Object mutex) { return new SynchronizedDeque<>(deque, mutex); } static final class SynchronizedDeque<E extends @Nullable Object> extends SynchronizedQueue<E> implements Deque<E> { SynchronizedDeque(Deque<E> delegate, @CheckForNull Object mutex) { super(delegate, mutex); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 53.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Synchronized.java
} static <E extends @Nullable Object> Deque<E> deque(Deque<E> deque, @CheckForNull Object mutex) { return new SynchronizedDeque<>(deque, mutex); } static final class SynchronizedDeque<E extends @Nullable Object> extends SynchronizedQueue<E> implements Deque<E> { SynchronizedDeque(Deque<E> delegate, @CheckForNull Object mutex) { super(delegate, mutex); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 57.2K bytes - Viewed (0)