This is a library with some utilities methods for working with Java, by example:
void myMethod(String name) {
if (name == null) {
throw new NullPointerException();
}
if (name.isBlank()) {
throw new IllegalArgumentException();
}
// code...
}
void myMethod(String name) {
checkArgument(name, n -> n.isBlank());
// code...
}
users = users.stream()
.filter(user -> user.getAge() >= 18)
.collect(Collectors.toList());
users = filter(users, user -> user.getAge() >= 18);
if you want to include the library in your project, you can do this by adding the dependency below:
<dependency>
<groupId>io.github.felixgilioli</groupId>
<artifactId>felix-utils</artifactId>
<version>1.2.1</version>
</dependency>
implementation 'io.github.felixgilioli:felix-utils:1.1.1'
The complete project documentation can be found here.
Pull Requests are very welcome, feel free to contribute 😃.