/guava/guava/src/com/google/common/collect/ImmutableMap.java
Arrays.copyOf( entries, ImmutableCollection.Builder.expandedCapacity( entries.length) ) ;
Arrays.copyOf ( entries, ImmutableCollection.Builder.expandedCapacity ( entries.length, minCapacity ) ) ;
this.size = 0; this.entriesUsed = false; } private void ensureCapacity(int minCapacity) { if (minCapacity > entries.length) { entries = <extra_id_0> entriesUsed = false; } } @CanIgnoreReturnValue public Builder<K, V> put(K key, V value) { ensureCapacity(size + 1);