Skip to content

Java with Fun (Functions) is a small and useful Java util library.

License

Notifications You must be signed in to change notification settings

x-funs/java-fun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java With Fun (Functions)

Java with Fun (Functions) is a small and useful Java util library.

English | 简体中文

Install

<dependency>
  <groupId>io.github.x-funs</groupId>
  <artifactId>java-fun</artifactId>
  <version>${java-fun.version}</version>
</dependency>

Usage

import io.github.xfuns.java.Fun;

public class JavaFun {
    public static void main(String[] args) {
        // whether the string is empty after trim (blank or not)
        System.out.println(Fun.blank("java-fun"));

        // return string md5 hash
        System.out.println(Fun.md5("java-fun"));
    
        // parse string to integer
        System.out.println(Fun.toInt("42"));
    
        // auto parse many datetime string to long timestamp
        System.out.println(Fun.strtotime("2015-04-06 16:03:03"));
    }
}

About

Java with Fun (Functions) is a small and useful Java util library.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages