| Package | Description |
|---|---|
| org.dromara.hutool.core.convert.impl |
各种类型转换的实现类,其都为Converter接口的实现,用于将未知的Object类型转换为指定类型
|
| org.dromara.hutool.core.data.id |
提供各种ID生成
|
| org.dromara.hutool.core.lang.mutable |
提供可变值对象的封装,用于封装int、long等不可变值,使其可变
|
| org.dromara.hutool.core.lang.tuple | |
| org.dromara.hutool.core.stream |
Java8的stream相关封装
|
| Modifier and Type | Method and Description |
|---|---|
Pair<?,?> |
PairConverter.convert(Type leftType,
Type rightType,
Object value)
转换对象为指定键值类型的指定类型Map
|
| Modifier and Type | Method and Description |
|---|---|
Pair<Long,Long> |
Snowflake.getIdScopeByTimestamp(long timestampStart,
long timestampEnd)
根据传入时间戳-计算ID起终点
|
Pair<Long,Long> |
Snowflake.getIdScopeByTimestamp(long timestampStart,
long timestampEnd,
boolean ignoreCenterAndWorker)
根据传入时间戳-计算ID起终点 Gitee/issues/I60M14
|
| Modifier and Type | Class and Description |
|---|---|
class |
MutablePair<L,R>
可变二元组对象
|
class |
MutableTriple<L,M,R>
可变三元组对象
|
| Modifier and Type | Class and Description |
|---|---|
class |
Triple<L,M,R>
不可变三元组对象
|
| Modifier and Type | Method and Description |
|---|---|
Pair<L,R> |
Pair.clone() |
static <L,R> Pair<L,R> |
Pair.of(L left,
R right)
构建Pair对象
|
| Modifier and Type | Method and Description |
|---|---|
static <T,L,R,LC extends Collection<L>,RC extends Collection<R>> |
CollectorUtil.toPairCollection(Function<T,L> lMapper,
Function<T,R> rMapper,
Supplier<LC> newCollectionL,
Supplier<RC> newCollectionR)
将一个
Collection<T>两个属性分流至两个Collection,并使用Pair收集。 |
static <T,L,R,LC extends Collection<L>,RC extends Collection<R>> |
CollectorUtil.toPairCollection(Function<T,L> lMapper,
Function<T,R> rMapper,
Supplier<LC> newCollectionL,
Supplier<RC> newCollectionR)
将一个
Collection<T>两个属性分流至两个Collection,并使用Pair收集。 |
static <T,L,R> Collector<T,Pair<List<L>,List<R>>,Pair<List<L>,List<R>>> |
CollectorUtil.toPairList(Function<T,L> lMapper,
Function<T,R> rMapper)
将一个
Collection<T>两个属性分流至两个ArrayList,并使用Pair收集。 |
static <T,L,R> Collector<T,Pair<List<L>,List<R>>,Pair<List<L>,List<R>>> |
CollectorUtil.toPairList(Function<T,L> lMapper,
Function<T,R> rMapper)
将一个
Collection<T>两个属性分流至两个ArrayList,并使用Pair收集。 |
Copyright © 2025. All rights reserved.