Looking for useless bloat? Here's a concept offering just that!
StringParse is a utility for parsing strings into objects.. particularly numbers. It's formatted in a way to return either a number or null instead of throwing a number format exception.
- Optionals.
- Method references.
- The lovely checkstyle!
StringParser parser = new StringParser(ParserMethod.INTEGER);
int value = parser.parse("5"); // 5
Object invalid = parser.parse("invalid"); // null
<!-- repositories -->
<repository>
<id>public</id>
<url>https://nexus.sleeeepyti.me/repository/public</url>
</repository>
<!-- dependencies -->
<dependency>
<groupId>com.github.bfu4</groupId>
<artifactId>stringparse</artifactId>
<version>1.0</version>
</dependency>