api

This project is a library for padding Strings in Java. DON'T USE THIS IN PRODUCTION. IT WAS CREATED FOR DEMO PURPOSES ONLY.

License

License

GroupId

GroupId

com.thegreatapi.demolibrary
ArtifactId

ArtifactId

api
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

api
This project is a library for padding Strings in Java. DON'T USE THIS IN PRODUCTION. IT WAS CREATED FOR DEMO PURPOSES ONLY.
Project URL

Project URL

http://thegreatapi.com
Source Code Management

Source Code Management

https://github.com/hbelmiro/demo-library/tree/master

Download api

How to add to project

<!-- https://jarcasting.com/artifacts/com.thegreatapi.demolibrary/api/ -->
<dependency>
    <groupId>com.thegreatapi.demolibrary</groupId>
    <artifactId>api</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.thegreatapi.demolibrary/api/
implementation 'com.thegreatapi.demolibrary:api:0.0.2'
// https://jarcasting.com/artifacts/com.thegreatapi.demolibrary/api/
implementation ("com.thegreatapi.demolibrary:api:0.0.2")
'com.thegreatapi.demolibrary:api:jar:0.0.2'
<dependency org="com.thegreatapi.demolibrary" name="api" rev="0.0.2">
  <artifact name="api" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.thegreatapi.demolibrary', module='api', version='0.0.2')
)
libraryDependencies += "com.thegreatapi.demolibrary" % "api" % "0.0.2"
[com.thegreatapi.demolibrary/api "0.0.2"]

Dependencies

test (2)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter jar 5.7.1
org.assertj : assertj-core jar 3.19.0

Project Modules

There are no modules declared in this project.

Demo Library

This project is a library for padding Strings in Java.


WARNING

Don't use this in production. It was created for demo purposes only.


How to use it:

Add the following dependency:

<dependency>
    <groupId>com.thegreatapi.demolibrary</groupId>
    <artifactId>demolibrary</artifactId>
    <version>${VERSION}</version>
</dependency>

The folling code

String paddedString = this.stringPadder.padLeft("My String", 30, '-');
System.out.println(paddedString);

Will print:

---------------------My String

Versions

Version
0.0.2
0.0.1