This project contains a set of useful Java general utility classes. The classes focus on the following areas:
- number base conversions (bases 2, 16, 32, and 64)
- primitive type to byte array conversions
- cryptographically secure random number generation for specific purposes
- a natural object comparator that works on anything
- a universal random hash function
The following highlights the utility classes provided by this project:
- Base02Utils - converts between byte arrays and base 2 strings
- Base16Utils - converts between byte arrays and base 16 strings
- Base32Utils - converts between byte arrays and base 32 strings
- Base64Utils - converts between byte arrays and base 64 strings
- ByteUtils - converts between byte arrays and primitive types
- RandomUtils - generates random array indexes, probabilities, and byte arrays
- NaturalComparator - compares any two objects of the same type
- UniversalHashFunction - generates a provably random distribution of hash values
For more detail on this project click on the following links:
To get started using these utilities, include the following dependency in your maven pom.xml file:
<dependency>
<groupId>com.craterdog</groupId>
<artifactId>java-general-utilities</artifactId>
<version>x.y</version>
</dependency>The source code, javadocs and jar file artifacts for this project are available from the Maven Central Repository. If your project doesn't currently use maven and you would like to, click here to get started down that path quickly.
Crater Dog Technologies™ would like to recognize and thank the following companies for their contributions to the development and testing of various components within this project:
- Blackhawk Network (https://blackhawknetwork.com)
