# xtool **Repository Path**: igeeksky/xtool ## Basic Information - **Project Name**: xtool - **Description**: xtool 是一个小小的 Java 工具集 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2021-11-18 - **Last Updated**: 2024-09-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: trie, 字典树, 工具集, 自然语言处理, Nlp ## README ## xtool [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Release](https://img.shields.io/github/v/release/patricklaux/xtool)](https://github.com/patricklaux/xtool/releases) [![Maven Central](https://img.shields.io/maven-central/v/com.igeeksky.xtool/xtool.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.igeeksky.xtool%22%20AND%20a:%22xtool%22) [![codecov](https://codecov.io/gh/patricklaux/xtool/branch/main/graph/badge.svg?token=VJ87A1IAVH)](https://codecov.io/gh/patricklaux/xtool) [![Last commit](https://img.shields.io/github/last-commit/patricklaux/xtool)](https://github.com/patricklaux/xtool/commits) [![Join the chat at https://gitter.im/igeeksky/xtool](https://badges.gitter.im/igeeksky/xtool.svg)](https://gitter.im/igeeksky/xtool?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## 1. 简介 xtool 是一个小小的 Java 工具集,遵循简单、可靠的原则,不求大而全,但求小而美。主要包含: - 字符串、数值、集合、IO等工具类; - 一些常用自定义注解; - NLP 相关的数据结构(主要实现:支持并发的高性能的字典树) ## 2. 使用 详细的使用介绍,请查看 [参考文档](https://github.com/patricklaux/xtool/blob/main/docs/Reference.md) 。 ### 2.1.Maven ```xml com.igeeksky.xtool xtool 1.0.15 ``` ### 2.2.Gradle ```groovy implementation group: 'com.igeeksky.xtool', name: 'xtool', version: '1.0.15' ``` ### 2.3.编译安装 #### 项目地址 - https://github.com/patricklaux/xtool/ - https://gitee.com/igeeksky/xtool 首先 git clone 项目,然后执行 maven 命令安装 ```shell # git clone项目到本地 git clone https://github.com/patricklaux/xtool.git # 执行maven命令编译 mvn clean install ``` ## 3. 参与 ### 3.1.分支介绍 | 分支 | 说明 | | -------- | ---------------------------- | | **main** | 主分支,用于版本发布 | | **dev** | 开发分支,用于接受 PR 和修改 | 如您希望参与开发这个类库,请首先 fork 项目到您的仓库,修改 dev 分支并提交 pr,然后等待合并即可。 ### 3.2.开发约定 1. 无第三方依赖; 2. 缩进采用空格; 3. 添加完整注释; 4. 加上您的大名; 5. 编写单元测试并运行通过。 ### 3.3.建议反馈 - [github](https://github.com/patricklaux/xtool/issues) - [gitee](https://gitee.com/igeeksky/xtool/issues) 如您发现任何 bug,或希望添加某类工具,或有任何开发建议,欢迎提交issue。 **!!!总之,欢迎 pr,欢迎 issue!!!** ## 4. 更新日志 | 版本 | 说明 | | ------ | ------------------------------------------------------------ | | 1.0.16 | remove ThreadLocalRandom,change to Random[] | | 1.0.15 | add ArrayUtils.fill | | 1.0.14 | 1. add Codec
2. add Compressor | | 1.0.13 | 1. add Futures
2. add ByteArray
3. add KeyValue & ExpireKeyValue | | 1.0.12 | 1. 修改部分文档说明 | | 1.0.11 | 1. 添加 ConcurrentHashSet
2. 添加 PlatformThreadFactory
3. 添加 VirtualThreadFactory
4. 升级为支持 JDK 21,不再支持 JDK 17 | | 1.0.10 | 1. 添加 SimpleJSON(仅实现对象转 JSONString)
2. 升级为支持 JDK 17,不再支持 JDK 8 | | 1.0.9 | 1. 添加 RandomUtils | | 1.0.8 | 1. 添加 Maps.newHashMap方法 | | 1.0.7 | 1. 添加 IOUtils.closeQuietly方法 | | 1.0.6 | 1. Found 删除 node 字段,NodeHelper 增加精确匹配方法 | | 1.0.5 | 1. 调整部分方法返回值 | | 1.0.4 | 1. 增加测试用例;2. 编写参考文档;3.调整部分代码 | | 1.0.3 | 1. 调整DigestUtils默认小写 | | 1.0.2 | 1. 补充完整注释 | | 1.0.1 | 1. 增加测试用例 2. 删除 Lists类 | | 1.0.0 | 1. 添加常用工具类 2. 添加 ConcurrentHashTrie 字典树 |