Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newLinkedBlockingQueue (1.29 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)
  4. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @return a new instance of {@link LinkedBlockingQueue}
         * @see LinkedBlockingQueue#LinkedBlockingQueue()
         */
        public static <E> LinkedBlockingQueue<E> newLinkedBlockingQueue() {
            return new LinkedBlockingQueue<>();
        }
    
        /**
         * Creates and returns a new instance of {@link LinkedBlockingQueue}.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
Back to top