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.

License

License

Categories

Categories

Java Languages
GroupId

GroupId

io.github.trigunam.java.util
ArtifactId

ArtifactId

tostring-implementation
Last Version

Last Version

2.2
Release Date

Release Date

Type

Type

jar
Description

Description

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.
Project URL

Project URL

https://github.com/trigunam/tostring-implementation
Project Organization

Project Organization

Yet to identify
Source Code Management

Source Code Management

https://github.com/trigunam/tostring-implementation

Download tostring-implementation

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.trigunam.java.util/tostring-implementation/ -->
<dependency>
    <groupId>io.github.trigunam.java.util</groupId>
    <artifactId>tostring-implementation</artifactId>
    <version>2.2</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.trigunam.java.util/tostring-implementation/
implementation 'io.github.trigunam.java.util:tostring-implementation:2.2'
// https://jarcasting.com/artifacts/io.github.trigunam.java.util/tostring-implementation/
implementation ("io.github.trigunam.java.util:tostring-implementation:2.2")
'io.github.trigunam.java.util:tostring-implementation:jar:2.2'
<dependency org="io.github.trigunam.java.util" name="tostring-implementation" rev="2.2">
  <artifact name="tostring-implementation" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.trigunam.java.util', module='tostring-implementation', version='2.2')
)
libraryDependencies += "io.github.trigunam.java.util" % "tostring-implementation" % "2.2"
[io.github.trigunam.java.util/tostring-implementation "2.2"]

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.32
ch.qos.logback : logback-classic jar 1.2.5

test (1)

Group / Artifact Type Version
junit : junit jar 4.13.2

Project Modules

There are no modules declared in this project.

Versions

Version
2.2
2.1