What is the hash of a null-type attribute value?

Tom Zeller tzeller at dragonacea.biz
Thu Nov 7 16:13:20 EST 2019


>  but I think it's generally understood that toString shouldn't be used for much besides object dumping/debugging, and explicit methods ought to be used for anything meaningful.

Agree. But ... except for Enum, which says toString() is preferred over name().

 https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Enum.html

Tom


More information about the dev mailing list