Java AIST Class Kit (JACK)

JACK is a multipurpose Java framework, which consists of multiple, reusable utility classes. The main goal of this framework is to avoid code duplication in all our project. To achieve this, JACK provides a
simple way to have a code basis across project boundaries.

Content

Currently, JACK consists of the following packages:

  • Collection: Contains any collection/iterable related utility methods as isNullOrEmpty() check.
  • Data: The data package consists of data wrappers like Pair or LambdaContainer (for manipulating non-final objects in a lambda).
  • Exception: Package containing different exception utility functionality e.g. methods for avoiding checked exceptions checking
  • General: The general package consists of miscellaneous classes and interfaces. Amongst other things it contains the Transformer<FROM, TO> interfaces, the PropertyMapperCreator and a CopyUtil for deep object copies.
  • Math: The math package consists of different extensions to java.lang.Math as double comparison or other mathematical/number stuff.
  • Persistence: The persistence package consists of different persistence functionality.
  • Core: The persistence core package consists of interfaces/classes which are reused in the different persistence implementation packages.
  • Filesystem: The filesystem package consists of FileStorage classes which persist any serializable class into the TEMP folder of your local OS. Furthermore, it defines a FileUtils class, which provides functionality to write an InputStream to the TEMP folder of your local OS (this is useful if you have to make Resource files accessible for e.g. wrapped C++ libraries as TensorFlow or OpenCV). In addition to that you can also find CSVProcessor and ReflectionCSVProcessor, that allow you to read and write domain classes to CSV file.
  • Random: The random package consists of extensions for java.util.Random like inRange() number generation.
  • Reflection: Contains different utility functionality for reflection based code like extracting all fields of a class containing also the super classes’ fields.
  • Stream: The stream package consists of extensions for java.lang.Stream like different mapping methods.
  • String: Contains useful utility classes for operating with strings