Class ImmutableRangeMap.Builder<K extends Comparable<? super K>, V>
java.lang.Object
cloud.opencode.base.collections.immutable.ImmutableRangeMap.Builder<K,V>
- Type Parameters:
K- endpoint type | 端点类型V- value type | 值类型
- Enclosing class:
ImmutableRangeMap<K extends Comparable<? super K>, V>
public static final class ImmutableRangeMap.Builder<K extends Comparable<? super K>, V>
extends Object
Builder for
ImmutableRangeMap.
ImmutableRangeMap 的构建器。
Uses a TreeRangeMap internally for range management.
内部使用 TreeRangeMap 进行范围管理。
- Since:
- JDK 25, opencode-base-collections V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the immutable range map.Put a range-value mapping into the builder.Put all mappings from another range map.
-
Method Details
-
put
-
putAll
-
build
Build the immutable range map. 构建不可变范围映射。- Returns:
- immutable range map | 不可变范围映射
-