Searched refs:expandedCapacity (Results 1 – 3 of 3) sorted by relevance
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ImmutableCollectionTest.java | 28 assertEquals(1, ImmutableCollection.Builder.expandedCapacity(0, 1)); in testCapacityExpansion() 29 assertEquals(2, ImmutableCollection.Builder.expandedCapacity(0, 2)); in testCapacityExpansion() 30 assertEquals(2, ImmutableCollection.Builder.expandedCapacity(1, 2)); in testCapacityExpansion() 32 ImmutableCollection.Builder.expandedCapacity(0, Integer.MAX_VALUE)); in testCapacityExpansion() 34 ImmutableCollection.Builder.expandedCapacity(1, Integer.MAX_VALUE)); in testCapacityExpansion() 36 ImmutableCollection.Builder.expandedCapacity(Integer.MAX_VALUE - 1, Integer.MAX_VALUE)); in testCapacityExpansion() 38 assertEquals(13, ImmutableCollection.Builder.expandedCapacity(8, 9)); in testCapacityExpansion()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableCollection.java | 218 static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() method in ImmutableCollection.Builder 333 this.contents, expandedCapacity(contents.length, minCapacity)); in ensureCapacity()
|
D | ImmutableMap.java | 196 entries, ImmutableCollection.Builder.expandedCapacity(entries.length, minCapacity)); in ensureCapacity()
|