Skip to content

Basic utilities. Most commonly less verbose versions of common code snippets.

License

Notifications You must be signed in to change notification settings

Schinzel/basic-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic-utils

Build Status Maintainability Rating Security Rating Coverage Bugs Code Smells Technical Debt Lines of Code

Basic utilities for Java (and Kotlin to some degree). Most commonly the utilities are less verbose versions of common code snippets.

Some examples

//Get host, i.e. "www.example.com"
String input = "http://www.example.com/index.html?key1=val1&key2=val2";
SubString.create(input)
        .startDelimiter("http://")
        .endDelimiter("/index")
        .getStr()
        .writeToSystemOutWithPrefix("Host: ");

Thrower.throwIfTrue(myVar<100).message("This is an exception message");


//Sleep for 100 milliseconds
Sandman.snoozeMillis(100);

//Check for null and empty string, map, list and so on
if (Checker.isEmpty(str)) {
}
<repositories>
    <repository>
        <id>maven-repo.schinzel.io</id>
        <url>https://s3-eu-west-1.amazonaws.com/maven-repo.schinzel.io/release</url>
    </repository>
</repositories>

<dependencies>
<dependency>
    <groupId>io.schinzel</groupId>
    <artifactId>basic-utils</artifactId>
    <version>1.XX</version>
</dependency>
</dependencies>    

Releases

No releases published

Packages

 
 
 

Languages