Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for queue (0.14 sec)

  1. android/guava/src/com/google/common/collect/Queues.java

       *
       * @param queue the queue to be wrapped in a synchronized view
       * @return a synchronized view of the specified queue
       * @since 14.0
       */
      public static <E extends @Nullable Object> Queue<E> synchronizedQueue(Queue<E> queue) {
        return Synchronized.queue(queue, null);
      }
    
      /**
       * Returns a synchronized (thread-safe) deque backed by the specified deque. In order to guarantee
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/TestQueueGenerator.java

    import java.util.Queue;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Creates queues, containing sample elements, to be tested.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface TestQueueGenerator<E extends @Nullable Object> extends TestCollectionGenerator<E> {
      @Override
      Queue<E> create(Object... elements);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals(6, queue.size());
        assertEquals(8, queue.capacity());
        checkUnbounded(queue);
        checkNatural(queue);
      }
    
      public void testCreation_maximumSize_withContents() {
        MinMaxPriorityQueue<Integer> queue =
            rawtypeToWildcard(MinMaxPriorityQueue.maximumSize(42)).create(NUMBERS);
        assertEquals(6, queue.size());
        assertEquals(11, queue.capacity());
        assertEquals(42, queue.maximumSize);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * defined as the <i>least</i> element in the queue according to the queue's comparator. But unlike
     * a regular priority queue, the methods {@link #peekLast}, {@link #pollLast} and {@link
     * #removeLast} are also provided, to act on the <i>greatest</i> element in the queue instead.
     *
     * <p>A min-max priority queue can be configured with a maximum size. If so, each time the size of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

         * fraction of read operations.
         */
        final AtomicInteger readCount = new AtomicInteger();
    
        /**
         * A queue of elements currently in the map, ordered by write time. Elements are added to the
         * tail of the queue on write.
         */
        @GuardedBy("this")
        final Queue<ReferenceEntry<K, V>> writeQueue;
    
        /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestStringQueueGenerator.java

    import java.util.List;
    import java.util.Queue;
    
    /**
     * Create queue of strings for tests.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestStringQueueGenerator implements TestQueueGenerator<String> {
      @Override
      public SampleElements<String> samples() {
        return new Strings();
      }
    
      @Override
      public Queue<String> create(Object... elements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterables.java

       * {@link Iterators#consumingIterator(Iterator)}.
       *
       * <p>Note: If {@code iterable} is a {@link Queue}, the returned iterable will instead use {@link
       * Queue#isEmpty} and {@link Queue#remove()}, since {@link Queue}'s iteration order is undefined.
       * Calling {@link Iterator#hasNext()} on a generated iterator from the returned iterable may cause
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestStringQueueGenerator.java

    import java.util.List;
    import java.util.Queue;
    
    /**
     * Create queue of strings for tests.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestStringQueueGenerator implements TestQueueGenerator<String> {
      @Override
      public SampleElements<String> samples() {
        return new Strings();
      }
    
      @Override
      public Queue<String> create(Object... elements) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/QueueTestSuiteBuilder.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.ArrayList;
    import java.util.List;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a queue
     * implementation.
     *
     * @author Jared Levy
     */
    @GwtIncompatible
    public final class QueueTestSuiteBuilder<E>
        extends AbstractCollectionTestSuiteBuilder<QueueTestSuiteBuilder<E>, E> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.features.CollectionFeature;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests offer operations on a queue. Can't be invoked directly; please
     * see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.1K bytes
    - Viewed (0)
Back to top