Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Capacity (0.05 sec)

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

       * @since 12.0
       */
      @J2ktIncompatible
      @GwtIncompatible // LinkedBlockingDeque
      public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(int capacity) {
        return new LinkedBlockingDeque<>(capacity);
      }
    
      /**
       * Creates a {@code LinkedBlockingDeque} with a capacity of {@link Integer#MAX_VALUE}, containing
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      }
    
      /**
       * Creates an {@code MonitorBasedArrayBlockingQueue} with the given (fixed) capacity and default
       * access policy.
       *
       * @param capacity the capacity of this queue
       * @throws IllegalArgumentException if {@code capacity} is less than 1
       */
      public MonitorBasedArrayBlockingQueue(int capacity) {
        this(capacity, false);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Queues.java

       * @since 12.0
       */
      @J2ktIncompatible
      @GwtIncompatible // LinkedBlockingDeque
      public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(int capacity) {
        return new LinkedBlockingDeque<>(capacity);
      }
    
      /**
       * Creates a {@code LinkedBlockingDeque} with a capacity of {@link Integer#MAX_VALUE}, containing
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(CharBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(ByteBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(ShortBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(IntBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(LongBuffer.class).capacity());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create();
        assertEquals(11, queue.capacity());
        checkUnbounded(queue);
        checkNatural(queue);
      }
    
      public void testCreation_comparator() {
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.orderedBy(SOME_COMPARATOR).create();
        assertEquals(11, queue.capacity());
        checkUnbounded(queue);
        assertSame(SOME_COMPARATOR, queue.comparator());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * Creates a {@code MonitorBasedPriorityBlockingQueue} with the default initial capacity (11) that
       * orders its elements according to their {@linkplain Comparable natural ordering}.
       */
      public MonitorBasedPriorityBlockingQueue() {
        q = new PriorityQueue<E>();
      }
    
      /**
       * Creates a {@code MonitorBasedPriorityBlockingQueue} with the specified initial capacity that
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactHashSet.java

      }
    
      /**
       * Creates a {@code CompactHashSet} instance, with a high enough "initial capacity" that it
       * <i>should</i> hold {@code expectedSize} elements without growth.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
       * @return a new, empty {@code CompactHashSet} with enough capacity to hold {@code expectedSize}
       *     elements without resizing
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(CharBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(ByteBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(ShortBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(IntBuffer.class).capacity());
        assertEquals(0, ArbitraryInstances.get(LongBuffer.class).capacity());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactHashMap.java

      }
    
      /**
       * Creates a {@code CompactHashMap} instance, with a high enough "initial capacity" that it
       * <i>should</i> hold {@code expectedSize} elements without growth.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
       * @return a new, empty {@code CompactHashMap} with enough capacity to hold {@code expectedSize}
       *     elements without resizing
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        stopwatch.sleepMillis(1000); // max capacity reached
        stopwatch.sleepMillis(1000); // this makes no difference
        limiter.acquire(1); // R0.00, since it's the first request
    
        limiter.acquire(1); // R0.00, from capacity
        limiter.acquire(3); // R0.00, from capacity
        limiter.acquire(1); // R0.00, concluding a burst of 5 permits
    
        limiter.acquire(); // R0.20, capacity exhausted
        assertEvents(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
Back to top