MVN

io.github.trigunam.java.util : tostring-implementation

Maven & Gradle

Sep 04, 2021
1 stars

tostring-implementation · This project is a library for any POJO class to implement a toString method. Given a class name and instance, the project will use reflection from Java API to get the getter methods for the given instance and execute it to print the methodName = methodValue in an appended string with comma separated values. This is very generic implementation so anybody can use this code to write their toString implementation. The idea is to avoid implementing toString by writing your own implementation every time. Please put your thoughts on the implementation so we can evolve as a project which will help every Java Developer.

<dependency>
    <groupId>io.github.trigunam.java.util</groupId>
    <artifactId>tostring-implementation</artifactId>
    <version>2.2</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of io.github.trigunam.java.util : tostring-implementation to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 2.2

All Versions

Choose a version of io.github.trigunam.java.util : tostring-implementation to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
2.2
tostring-implementation-2.2
2.1
tostring-implementation-2.1

How to add a dependency to Maven

Add the following io.github.trigunam.java.util : tostring-implementation maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>io.github.trigunam.java.util</groupId>
    <artifactId>tostring-implementation</artifactId>
    <version>2.2</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following io.github.trigunam.java.util : tostring-implementation gradle dependency to your build.gradle file:

implementation 'io.github.trigunam.java.util:tostring-implementation:2.2'

Gradle Kotlin DSL: Add the following io.github.trigunam.java.util : tostring-implementation gradle kotlin dependency to your build.gradle.kts file:

implementation("io.github.trigunam.java.util:tostring-implementation:2.2")

How to add a dependency to SBT Scala

SBT Scala: Add the following io.github.trigunam.java.util : tostring-implementation sbt scala dependency to your build.sbt file:

libraryDependencies += "io.github.trigunam.java.util" % "tostring-implementation" % "2.2"