Skip to content

This is a simple library to format strings with {} as a placeholders

Notifications You must be signed in to change notification settings

pronchakov/string-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

string-format

This small library is for formatting strings

Maven dependency

<dependency>
    <groupId>io.github.pronchakov</groupId>
    <artifactId>string-format</artifactId>
    <version>0.0.1</version>
</dependency>

Supported data types for arguments:

  • Java primitive types
  • Java wrappers for primitive types
  • Collections
  • Every class with properly implemented toString() method

Not supported yet

  • Arrays

Example:

String result = Str.fmt("I use {} since {}.", "Java", 1995);

String result: "I use Java since 1995."

About

This is a simple library to format strings with {} as a placeholders

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages