/external/guava/guava/src/com/google/common/collect/ |
D | ArrayListMultimap.java | 71 @VisibleForTesting transient int expectedValuesPerKey; field in ArrayListMultimap 91 int expectedKeys, int expectedValuesPerKey) { in create() argument 92 return new ArrayListMultimap<K, V>(expectedKeys, expectedValuesPerKey); in create() 108 expectedValuesPerKey = DEFAULT_VALUES_PER_KEY; in ArrayListMultimap() 111 private ArrayListMultimap(int expectedKeys, int expectedValuesPerKey) { in ArrayListMultimap() argument 113 checkNonnegative(expectedValuesPerKey, "expectedValuesPerKey"); in ArrayListMultimap() 114 this.expectedValuesPerKey = expectedValuesPerKey; in ArrayListMultimap() 120 ((ArrayListMultimap<?, ?>) multimap).expectedValuesPerKey : in ArrayListMultimap() 130 return new ArrayList<V>(expectedValuesPerKey); in createCollection() 151 stream.writeInt(expectedValuesPerKey); in writeObject() [all …]
|
D | MultimapBuilder.java | 191 private final int expectedValuesPerKey; 193 ArrayListSupplier(int expectedValuesPerKey) { 194 this.expectedValuesPerKey = checkNonnegative(expectedValuesPerKey, "expectedValuesPerKey"); 199 return new ArrayList<V>(expectedValuesPerKey); 220 private final int expectedValuesPerKey; 222 HashSetSupplier(int expectedValuesPerKey) { 223 this.expectedValuesPerKey = checkNonnegative(expectedValuesPerKey, "expectedValuesPerKey"); 228 return new HashSet<V>(expectedValuesPerKey); 233 private final int expectedValuesPerKey; 235 LinkedHashSetSupplier(int expectedValuesPerKey) { [all …]
|
D | HashMultimap.java | 54 transient int expectedValuesPerKey = DEFAULT_VALUES_PER_KEY; field in HashMultimap 74 int expectedKeys, int expectedValuesPerKey) { in create() argument 75 return new HashMultimap<K, V>(expectedKeys, expectedValuesPerKey); in create() 94 private HashMultimap(int expectedKeys, int expectedValuesPerKey) { in HashMultimap() argument 96 Preconditions.checkArgument(expectedValuesPerKey >= 0); in HashMultimap() 97 this.expectedValuesPerKey = expectedValuesPerKey; in HashMultimap() 114 return Sets.<V>newHashSetWithExpectedSize(expectedValuesPerKey); in createCollection() 125 stream.writeInt(expectedValuesPerKey); in writeObject() 133 expectedValuesPerKey = stream.readInt(); in readObject()
|
D | LinkedHashMultimap.java | 102 int expectedKeys, int expectedValuesPerKey) { in create() argument 105 Maps.capacity(expectedValuesPerKey)); in create()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ArrayListMultimap.java | 66 @VisibleForTesting transient int expectedValuesPerKey; field in ArrayListMultimap 86 int expectedKeys, int expectedValuesPerKey) { in create() argument 87 return new ArrayListMultimap<K, V>(expectedKeys, expectedValuesPerKey); in create() 103 expectedValuesPerKey = DEFAULT_VALUES_PER_KEY; in ArrayListMultimap() 106 private ArrayListMultimap(int expectedKeys, int expectedValuesPerKey) { in ArrayListMultimap() argument 108 checkNonnegative(expectedValuesPerKey, "expectedValuesPerKey"); in ArrayListMultimap() 109 this.expectedValuesPerKey = expectedValuesPerKey; in ArrayListMultimap() 115 ((ArrayListMultimap<?, ?>) multimap).expectedValuesPerKey : in ArrayListMultimap() 125 return new ArrayList<V>(expectedValuesPerKey); in createCollection()
|
D | HashMultimap.java | 49 transient int expectedValuesPerKey = DEFAULT_VALUES_PER_KEY; field in HashMultimap 69 int expectedKeys, int expectedValuesPerKey) { in create() argument 70 return new HashMultimap<K, V>(expectedKeys, expectedValuesPerKey); in create() 89 private HashMultimap(int expectedKeys, int expectedValuesPerKey) { in HashMultimap() argument 91 Preconditions.checkArgument(expectedValuesPerKey >= 0); in HashMultimap() 92 this.expectedValuesPerKey = expectedValuesPerKey; in HashMultimap() 109 return Sets.<V>newHashSetWithExpectedSize(expectedValuesPerKey); in createCollection()
|
D | LinkedHashMultimap.java | 98 int expectedKeys, int expectedValuesPerKey) { in create() argument 101 Maps.capacity(expectedValuesPerKey)); in create()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | HashMultimapTest.java | 41 assertEquals(2, multimap.expectedValuesPerKey); in testCreate() 51 assertEquals(2, copy.expectedValuesPerKey); in testCreateFromMultimap() 60 assertEquals(15, multimap.expectedValuesPerKey); in testCreateFromSizes()
|
D | ArrayListMultimapTest.java | 112 assertEquals(3, multimap.expectedValuesPerKey); in testCreate() 118 assertEquals(20, multimap.expectedValuesPerKey); in testCreateFromSizes() 137 assertEquals(3, multimap.expectedValuesPerKey); in testCreateFromHashMultimap() 145 assertEquals(20, multimap.expectedValuesPerKey); in testCreateFromArrayListMultimap()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ArrayListMultimapTest.java | 149 assertEquals(3, multimap.expectedValuesPerKey); in testCreate() 155 assertEquals(20, multimap.expectedValuesPerKey); in testCreateFromSizes() 174 assertEquals(3, multimap.expectedValuesPerKey); in testCreateFromHashMultimap() 182 assertEquals(20, multimap.expectedValuesPerKey); in testCreateFromArrayListMultimap()
|
D | HashMultimapTest.java | 79 assertEquals(2, multimap.expectedValuesPerKey); in testCreate() 89 assertEquals(2, copy.expectedValuesPerKey); in testCreateFromMultimap() 98 assertEquals(15, multimap.expectedValuesPerKey); in testCreateFromSizes()
|