Class ImmutableClassToInstanceMap.Builder<B>
java.lang.Object
cloud.opencode.base.collections.immutable.ImmutableClassToInstanceMap.Builder<B>
- Type Parameters:
B- base type | 基础类型
- Enclosing class:
ImmutableClassToInstanceMap<B>
Builder for ImmutableClassToInstanceMap.
ImmutableClassToInstanceMap 构建器。
- Since:
- JDK 25, opencode-base-collections V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the immutable class to instance map.<T extends B>
ImmutableClassToInstanceMap.Builder<B> Put instance in a type-safe manner.Put all entries from a map.
-
Method Details
-
put
Put instance in a type-safe manner. 以类型安全的方式放入实例。- Type Parameters:
T- the type | 类型- Parameters:
type- the class | 类value- the instance | 实例- Returns:
- this builder | 此构建器
-
putAll
-
build
Build the immutable class to instance map. 构建不可变类型实例映射。- Returns:
- immutable class to instance map | 不可变类型实例映射
-