Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 12 of 12 for remainingCapacity (0.09 seconds)

  1. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * not capacity constrained.
       *
       * @return {@code Integer.MAX_VALUE}
       */
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public int remainingCapacity() {
        return Integer.MAX_VALUE;
      }
    
      /**
       * Removes a single instance of the specified element from this queue, if it is present. More
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 19K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        assertEquals(3, queue.remainingCapacity());
        queue.add("hi");
        assertEquals(2, queue.remainingCapacity());
        queue.add("hi");
        assertEquals(1, queue.remainingCapacity());
        queue.add("hi");
        assertEquals(0, queue.remainingCapacity());
      }
    
      public void testEvictingAfterOne() throws Exception {
        EvictingQueue<String> queue = EvictingQueue.create(1);
        assertEquals(0, queue.size());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
Back to Top