Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newLinkedBlockingQueue (0.07 sec)

  1. android/guava-tests/test/com/google/common/collect/QueuesTest.java

      }
    
      public void testNewLinkedBlockingQueueCapacity() {
        assertThrows(IllegalArgumentException.class, () -> Queues.newLinkedBlockingQueue(0));
        assertEquals(1, Queues.newLinkedBlockingQueue(1).remainingCapacity());
        assertEquals(11, Queues.newLinkedBlockingQueue(11).remainingCapacity());
      }
    
      /** Checks that #drain() invocations behave correctly for a drained (empty) queue. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Queues.java

      /** Creates an empty {@code LinkedBlockingQueue} with a capacity of {@link Integer#MAX_VALUE}. */
      @J2ktIncompatible
      @GwtIncompatible // LinkedBlockingQueue
      public static <E> LinkedBlockingQueue<E> newLinkedBlockingQueue() {
        return new LinkedBlockingQueue<>();
      }
    
      /**
       * Creates an empty {@code LinkedBlockingQueue} with the given (fixed) capacity.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Queues.java

      /** Creates an empty {@code LinkedBlockingQueue} with a capacity of {@link Integer#MAX_VALUE}. */
      @J2ktIncompatible
      @GwtIncompatible // LinkedBlockingQueue
      public static <E> LinkedBlockingQueue<E> newLinkedBlockingQueue() {
        return new LinkedBlockingQueue<>();
      }
    
      /**
       * Creates an empty {@code LinkedBlockingQueue} with the given (fixed) capacity.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
Back to top