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
FileUtils
andInputUtils
for removal by replacement. - Deprecated many useless methods in
Reflect
for removed by replacement. - Refactored Javadoc.
- Removed
Pair#isEqual
in favour ofObject#equals
which 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
StandardNamingConvention
to implement#name()
with relevant changes. - Added a registry for
NamingConvention
objects 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
NamingConvention
class 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
InputUtils
for 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
WeakHashSet
which is aHashSet
that uses aWeakHashMap
for the backing map. - Added an
EmptyPair
. Much like an empty optional there is only one instance of this. - Added a
ThrowableSupplier
, a copy of theSupplier
class but in which the#get()
method throws a generic exception. - Added a
Primitive
Enum for converting between primitive classes and their wrappers. - Other various miscellaneous changes.