Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Capacity (0.23 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
    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-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());
      }
    
    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)
  3. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      /**
       * Creates a {@code CompactLinkedHashMap} instance, with a high enough "initial capacity" that it
       * <i>should</i> hold {@code expectedSize} elements without rebuilding internal data structures.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
       * @return a new, empty {@code CompactLinkedHashMap} with enough capacity to hold {@code
       *     expectedSize} elements without resizing
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSet.java

         */
        @CheckForNull private SetBuilderImpl<E> impl;
        boolean forceCopy;
    
        public Builder() {
          this(0);
        }
    
        Builder(int capacity) {
          if (capacity > 0) {
            impl = new RegularSetBuilderImpl<>(capacity);
          } else {
            impl = EmptySetBuilderImpl.instance();
          }
        }
    
        Builder(@SuppressWarnings("unused") boolean subclass) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashMultiset.java

    @ElementTypesAreNonnullByDefault
    public final class HashMultiset<E extends @Nullable Object> extends AbstractMapBasedMultiset<E> {
    
      /** Creates a new, empty {@code HashMultiset} using the default initial capacity. */
      public static <E extends @Nullable Object> HashMultiset<E> create() {
        return create(ObjectCountHashMap.DEFAULT_SIZE);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/HashMultiset.java

    @ElementTypesAreNonnullByDefault
    public final class HashMultiset<E extends @Nullable Object> extends AbstractMapBasedMultiset<E> {
    
      /** Creates a new, empty {@code HashMultiset} using the default initial capacity. */
      public static <E extends @Nullable Object> HashMultiset<E> create() {
        return new HashMultiset<>();
      }
    
      /**
       * Creates a new, empty {@code HashMultiset} with the specified expected number of distinct
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableList.java

         * ImmutableList#builder}.
         */
        public Builder() {
          this(DEFAULT_INITIAL_CAPACITY);
        }
    
        Builder(int capacity) {
          this.contents = new @Nullable Object[capacity];
          this.size = 0;
        }
    
        private void getReadyToExpandTo(int minCapacity) {
          if (contents.length < minCapacity) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  8. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        checkMaximumSize(8, 8, Long.MAX_VALUE);
    
        // vary initial capacity wrt maximumSize
    
        for (int capacity = 0; capacity < 8; capacity++) {
          checkMaximumSize(1, capacity, 4);
          checkMaximumSize(2, capacity, 4);
          checkMaximumSize(4, capacity, 4);
          checkMaximumSize(8, capacity, 4);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        checkMaximumSize(8, 8, Long.MAX_VALUE);
    
        // vary initial capacity wrt maximumSize
    
        for (int capacity = 0; capacity < 8; capacity++) {
          checkMaximumSize(1, capacity, 4);
          checkMaximumSize(2, capacity, 4);
          checkMaximumSize(4, capacity, 4);
          checkMaximumSize(8, capacity, 4);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       * higher than performing just the operation without enforcing the capacity constraint.
       *
       * This implementation uses a per-segment queue to record a memento of the additions, removals,
       * and accesses that were performed on the map. The queue is drained on writes and when it exceeds
       * its capacity threshold.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
Back to top