Skip to content

Releases: Harleyoc1/JavaUtilities

Module Info, Deprecations, Cleanup

23 Sep 09:54
Compare
Choose a tag to compare
Pre-release

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 and InputUtils for removal by replacement.
  • Deprecated many useless methods in Reflect for removed by replacement.
  • Refactored Javadoc.
  • Removed Pair#isEqual in favour of Object#equals which now only checks key/value match instead.

NamingConvention Registry and Identifiers

06 Jul 11:02
Compare
Choose a tag to compare

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 and NamingConvention#register(NamingConvention) for registering them.

NamingConvention

06 Jul 10:18
Compare
Choose a tag to compare
NamingConvention Pre-release
Pre-release

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

16 May 18:36
Compare
Choose a tag to compare

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 a HashSet that uses a WeakHashMap 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 the Supplier 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.