Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for expandedCapacity (0.05 sec)

  1. guava/src/com/google/common/primitives/ImmutableIntArray.java

          if (newCount > array.length) {
            array = Arrays.copyOf(array, expandedCapacity(array.length, newCount));
          }
        }
    
        // Unfortunately this is pasted from ImmutableCollection.Builder.
        private static int expandedCapacity(int oldCapacity, int minCapacity) {
          if (minCapacity < 0) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 14:49:24 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

          if (newCount > array.length) {
            array = Arrays.copyOf(array, expandedCapacity(array.length, newCount));
          }
        }
    
        // Unfortunately this is pasted from ImmutableCollection.Builder.
        private static int expandedCapacity(int oldCapacity, int minCapacity) {
          if (minCapacity < 0) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 14:49:24 UTC 2025
    - 22K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

       */
      private void ensureCapacity(int minCapacity) {
        if (nextInBucketKToV.length < minCapacity) {
          int oldCapacity = nextInBucketKToV.length;
          int newCapacity = ImmutableCollection.Builder.expandedCapacity(oldCapacity, minCapacity);
    
          keys = Arrays.copyOf(keys, newCapacity);
          values = Arrays.copyOf(values, newCapacity);
          nextInBucketKToV = expandAndFillWithAbsent(nextInBucketKToV, newCapacity);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 14:46:34 UTC 2025
    - 37.1K bytes
    - Viewed (0)
Back to top