Package | Description |
---|---|
org.dromara.hutool.core.codec |
编码解码封装编码封装
|
org.dromara.hutool.core.lang.builder |
建造者工具
用于建造特定对象或结果,建造者模式的抽象。 |
org.dromara.hutool.core.map |
Map相关封装,提供特殊Map实现以及Map工具MapUtil
|
org.dromara.hutool.core.map.multi |
多参数类型的Map实现,包括集合类型值的MultiValueMap和Table
MultiValueMap:一个键对应多个值的集合的实现,类似于树的结构。 |
org.dromara.hutool.core.net.ssl |
SSL相关封装
|
org.dromara.hutool.core.net.url |
URL相关工具
|
org.dromara.hutool.core.stream |
Java8的stream相关封装
|
org.dromara.hutool.core.thread |
提供线程及高并发封装,入口为ThreadUtil
|
org.dromara.hutool.core.tree |
提供通用树生成,特点:
1、每个字段可自定义
2、支持排序 树深度配置,自定义转换器等 3、支持额外属性扩展 4、贴心 许多属性,特性都有默认值处理 5、使用简单 可一行代码生成树 6、代码简洁轻量无额外依赖 |
org.dromara.hutool.cron.pattern.builder |
模式构建器
|
org.dromara.hutool.db.sql |
SQL语句和Statement构建封装
|
org.dromara.hutool.extra.mail |
邮件封装,基于jakarta.mail库,入口为MailUtil
|
org.dromara.hutool.http.client.engine.httpclient4 |
Apache HttpClient 4.x实现
文档见:https://hc.apache.org/httpcomponents-client-4.5.x/index.html |
org.dromara.hutool.http.client.engine.httpclient5 |
Apache HttpClient 5.1.x实现
文档见:https://hc.apache.org/httpcomponents-client-5.1.x/index.html |
org.dromara.hutool.swing.img |
图像处理相关工具类封装
|
Modifier and Type | Class and Description |
---|---|
static class |
PercentCodec.Builder
|
Modifier and Type | Class and Description |
---|---|
class |
GenericBuilder<T>
通用Builder
参考: 一看就会的java8通用Builder
使用方法如下:
Box box = GenericBuilder
.of(Box::new)
.with(Box::setId, 1024L)
.with(Box::setTitle, "Hello World!")
|
Modifier and Type | Class and Description |
---|---|
class |
MapBuilder<K,V>
Map创建类
|
Constructor and Description |
---|
RowKeyTable(Map<R,Map<C,V>> raw,
Builder<? extends Map<C,V>> columnMapBuilder)
构造
|
Modifier and Type | Class and Description |
---|---|
class |
SSLContextBuilder
SSLContext 构建器,可以自定义:协议(protocol),默认TLS KeyManager ,默认空
TrustManager ,默认null
SecureRandom ,默认null
构建后可获得SSLContext ,通过调用SSLContext.getSocketFactory() 获取SSLSocketFactory |
Modifier and Type | Class and Description |
---|---|
class |
UrlBuilder
URL 生成器,格式形如:
[scheme:]scheme-specific-part[#fragment]
[scheme:][//authority][path][?
|
Modifier and Type | Interface and Description |
---|---|
static interface |
EasyStream.Builder<T>
建造者
|
Modifier and Type | Class and Description |
---|---|
class |
ExecutorBuilder
ThreadPoolExecutor 建造者
1. |
class |
ThreadFactoryBuilder
ThreadFactory创建器
参考:Guava的ThreadFactoryBuilder |
Modifier and Type | Class and Description |
---|---|
class |
TreeBuilder<E>
树构建器
|
Modifier and Type | Interface and Description |
---|---|
interface |
PartBuilder
Cron表达式的分片构建器
|
Modifier and Type | Class and Description |
---|---|
static class |
PartBuilder.Always
始终匹配
|
static class |
PartBuilder.And
逻辑与表达式
|
static class |
PartBuilder.Every
每隔指定步长
如 5/3,表示每3步取一次,即5,8,11,14,17... |
static class |
PartBuilder.On
固定值
|
static class |
PartBuilder.Range
区间表达式
|
class |
PatternBuilder
定时任务表达式构建器
|
Modifier and Type | Class and Description |
---|---|
class |
ConditionBuilder
多条件构建封装
可以将多个条件构建为SQL语句的一部分,并将参数值转换为占位符,并提取对应位置的参数值。 |
class |
QueryBuilder
查询构建器,用于构建查询条件,例如:
Query query = QueryBuilder.of()
.select("id", "name")
.from("user")
.where("id", 1)
.and("name", "hutool")
.or("age", 18)
.build();
|
class |
SqlBuilder
SQL构建器
首先拼接SQL语句,值使用 ? |
class |
StatementBuilder
PreparedStatement 构建器,构建结果为StatementWrapper |
Modifier and Type | Class and Description |
---|---|
class |
Mail
邮件发送客户端
|
Modifier and Type | Class and Description |
---|---|
class |
ConnectionSocketFactoryRegistryBuilder
HttpClient4连接工厂注册器构建器
|
Modifier and Type | Class and Description |
---|---|
class |
TlsSocketStrategyBuilder
TLS Socket 策略构建器
|
Modifier and Type | Class and Description |
---|---|
class |
RenderingHintsBuilder
定义和管理键和关联值的集合构建器,提供配置包括:
RenderingHints.KEY_ANTIALIASING 抗锯齿
RenderingHints.KEY_TEXT_ANTIALIASING 文本抗锯齿
RenderingHints.KEY_COLOR_RENDERING 颜色着色的渲染方式
RenderingHints.KEY_DITHERING 抖动
RenderingHints.KEY_FRACTIONALMETRICS 字体规格
RenderingHints.KEY_INTERPOLATION 内插
RenderingHints.KEY_ALPHA_INTERPOLATION alpha合成微调
RenderingHints.KEY_RENDERING 着色
RenderingHints.KEY_STROKE_CONTROL 笔划规范化控制
RenderingHints.KEY_TEXT_LCD_CONTRAST LCD文本对比呈现
|
Copyright © 2025. All rights reserved.