| Package | Description |
|---|---|
| cn.hutool.core.lang |
语言特性包,包括大量便捷的数据结构,例如验证器Validator,分布式ID生成器Snowflake等
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
EnumItem<E extends EnumItem<E>>
枚举元素通用接口,在自定义枚举上实现此接口可以用于数据转换
数据库保存时建议保存 intVal()而非ordinal()防备需求变更 |
| Modifier and Type | Method and Description |
|---|---|
default E[] |
EnumItem.items()
获取所有枚举对象
|
Copyright © 2025. All rights reserved.