The ultimate Java utility library to streamline development and reduce boilerplate code
UtiliMate is a comprehensive Java utility library designed to simplify and accelerate the development process. Inspired by the ease of use of Python’s built-in functions, it provides a wide array of static methods that handle common programming tasks.
The library provides functions for collection, list and map processing, as well as numerical operations, reducing the need for repetitive boilerplate code, enhancing productivity and code readability.
It is especially useful for developers who want to write clean, maintainable code without having to reinvent the wheel for everyday tasks. With its wide arrange of features and easy to use API, UtiliMate aims to make Java programming more enjoyable and efficient.
still very work in progress
- Add GitHub Packages to
repositories
inPOM.xml
:
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/duckysmacky/utilimate/</url>
</repository>
- Add the package to
dependencies
inPOM.xml
:
<dependency>
<groupId>io.github.duckysmacky</groupId>
<artifactId>utilimate</artifactId>
<version>0.2.0</version>
</dependency>
- Add GitHub Packages to
repositories
ingradle.build
:
maven {
url = uri("https://maven.pkg.github.com/duckysmacky/utilimate")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
You can generate a token in your account settings page
- Add the package to the dependencies in
build.gradle
:
implementation 'io.github.duckysmacky:utilimate:0.2.0'
min()
- Finds the smallest value in a given collectionmax()
- Finds the biggest value in a given collectionsum()
- Finds the sum of all values in a given collectionall()
- Checks values in a collection for being valid (true or not null)any()
- Checks for at least one value in a collection being valid (true or not null)
countOccurrences()
- Counts how many times each unique value appears in a given list
sortByValue()
- Sorts a given map by its values based on a given ordersortByKey()
- Sorts a given map by its keys based on a given order
min()
- Finds the smallest number within given number varargsmax()
- Finds the biggest number within given number varargs