Class ToStringStyle.ShortPrefixToStringStyle

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ToStringStyle

    private static final class ToStringStyle.ShortPrefixToStringStyle
    extends ToStringStyle

    ToStringStyle that prints out the short class name and no identity hashcode.

    This is an inner class rather than using StandardToStringStyle to ensure its immutability.

    • Constructor Detail

      • ShortPrefixToStringStyle

        ShortPrefixToStringStyle()

        Constructor.

        Use the static constant rather than instantiating.

    • Method Detail

      • readResolve

        private java.lang.Object readResolve()

        Ensure Singleton after serialization.

        Returns:
        the singleton