Releases: Harleyoc1/JavaUtilities
Module Info, Deprecations, Cleanup
Small release, finally adding a module-info file. Future releases will expand on this by separated all functionality into modules.
Changes
- Switched to using JetBrains nullability annotations.
- Removed default method nullability annotations.
- Added
module-info. - Deprecated
FileUtilsandInputUtilsfor removal by replacement. - Deprecated many useless methods in
Reflectfor removed by replacement. - Refactored Javadoc.
- Removed
Pair#isEqualin favour ofObject#equalswhich now only checks key/value match instead.
NamingConvention Registry and Identifiers
This is a small release adding a registry and name identifiers to the new NamingConvention objects added in 0.1.1.
Changes
- Added
NamingConvention#name()for retrieving the name of a naming convention as an identifier. - Updated
StandardNamingConventionto implement#name()with relevant changes. - Added a registry for
NamingConventionobjects based on their#name().NamingConvention#get(String)can be used for retrieving them from their name andNamingConvention#register(NamingConvention)for registering them.
NamingConvention
This release adds a NamingConvention system for converting strings between naming conventions, as well as miscellaneous cleanup in other classes. A few older classes and methods have also been deprecated.
This version also fully embraces Java 16, meaning that from this version and up only Java 16+ will be supported.
Changes
- Added
NamingConventionclass with a set of default naming conventions. Allows testing that strings follow the convention and converting to others. - Various Javadoc refinements.
- Added and enforced missing nullability annotations in certain methods.
- Deprecated
InputUtilsfor replacement with a new system in a future release. - Deprecated
IntegerUtils#round(double, int), will be moved to a more suited class in a future release.
Reflection, WeakHashSet, EmptyPair, and More
This is the largest release of JavaUtilities so far, bringing helper classes for dealing with Reflection, a copy of HashSet that uses a WeakHashMap for the backing map, an EmptyPair and more.
Changes
- Added classes for dealing with Reflection.
- Added a
WeakHashSetwhich is aHashSetthat uses aWeakHashMapfor the backing map. - Added an
EmptyPair. Much like an empty optional there is only one instance of this. - Added a
ThrowableSupplier, a copy of theSupplierclass but in which the#get()method throws a generic exception. - Added a
PrimitiveEnum for converting between primitive classes and their wrappers. - Other various miscellaneous changes.