Skip to content

Commit bb9a8f8

Browse files
committed
Add performance note to MultiMap.get() javadoc
1 parent 5dc8ae3 commit bb9a8f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/pascal/taie/util/collection/MultiMap.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ public interface MultiMap<K, V> {
8282
* @return an unmodifiable view of the values associated with {@code key}
8383
* in this multimap, if {@code key} is absent; otherwise, this returns
8484
* an empty set.
85+
* <p>
86+
* <strong>Note:</strong> The returned set may not have the same type as
87+
* the underlying set used in this multimap. This may cause performance
88+
* degradation for specialized sets such as {@link GenericBitSet}.
89+
* See {@link GenericBitSet#addAll(Collection)}.
8590
*/
8691
Set<V> get(K key);
8792

0 commit comments

Comments
 (0)