This is a Java toolkit that truly embraces Object-Oriented Programming (OOP). Unlike other libraries that rely heavily on static methods, this toolkit requires you to instantiate objects before invoking utility methods.
By utilizing overloaded constructors, it automatically adapts to and converts various input parameters. This approach not only handles complex scenarios with ease but also results in a cleaner API design and more concise, DRY (Don't Repeat Yourself) code.
Furthermore, this library is designed to be lightweight with minimal dependencies. The JAR file is only about 170KB in size and includes the following modules:
| Class/Package Module | Detail Description | Memo |
|---|---|---|
| BytesHelper | Byte array utility class | |
| CollUtils | Collection utility class | |
| ConvertBasicValue | Attempts to convert target type, note that not all types can be converted | |
| DateHelper | Date utility class | |
| EncodeTools | String URL/Base64 encoder | |
| MessageDigestHelper | MD5/SHA1/SHA256/384/512 encryption utility class | |
| ObjectHelper | A helper for Java Object | |
| HTTP Request | A Small HTTP Request Component | |
| RandomTools | Random Numbers and Strings | |
| RegExpUtils | Regular expression utility class | |
| StrUtil | String utility class | |
| JsonUtil | Encapsulation of Jackson Library: Conversion Methods Between JSON, Map, Bean, and List | Jackson is the only library that dependencies |
| XmlHelper | XML processing utility class | |
| Cryptography | AES/RSA encryption and decryption package | |
| IO | File, resource, stream utility package | |
| Reflection | Reflection utility package |
Tutorials | Tutorials(Chinese) | DeepWiki Tutorials | Java Documents
Runs on Java 8+. Maven:
<dependency>
<groupId>com.ajaxjs</groupId>
<artifactId>ajaxjs-util</artifactId>
<version>1.3.6</version>
</dependency>