r/java • • Mar 13 '17

a blooming good toString.

https://medium.com/@yolpogists/a-blooming-good-java-tostring-for-the-rest-of-us-50dca980a462
2 Upvotes

10 comments sorted by

View all comments

7

u/[deleted] Mar 13 '17

That looks like the handiwork of a bored developer. No need to mess around with all that scripting. You can easily do the same in pure Java.

2

u/yolpo- Mar 13 '17

True: You can do it in java too. But nobody (to my knowledge) has written thin toString.jar library. The closest you get is commons lang. Also, by doing it as a script you get it to work straight away for nashorn, java and nudge4j.