Class ImmutableSetMultimap.Builder<K,V>
java.lang.Object
cloud.opencode.base.collections.immutable.ImmutableSetMultimap.Builder<K,V>
- Type Parameters:
K- key type | 键类型V- value type | 值类型
- Enclosing class:
ImmutableSetMultimap<K,V>
Builder for ImmutableSetMultimap.
ImmutableSetMultimap 构建器。
- Since:
- JDK 25, opencode-base-collections V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the immutable set multimap.Put entry.Put all entries from a multimap.Put all values for a key.final ImmutableSetMultimap.Builder<K, V> Put all values for a key.
-
Method Details
-
put
Put entry. 放入条目。- Parameters:
key- the key | 键value- the value | 值- Returns:
- this builder | 此构建器
-
putAll
-
putAll
Put all values for a key. 为键放入所有值。- Parameters:
key- the key | 键values- the values | 值- Returns:
- this builder | 此构建器
-
putAll
-
build
Build the immutable set multimap. 构建不可变集合多值映射。- Returns:
- immutable set multimap | 不可变集合多值映射
-