Class ToStringStyle.ShortPrefixToStringStyle

java.lang.Object
org.apache.commons.lang3.builder.ToStringStyle
org.apache.commons.lang3.builder.ToStringStyle.ShortPrefixToStringStyle
All Implemented Interfaces:
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.

  • Field Details

  • Constructor Details

    • ShortPrefixToStringStyle

      ShortPrefixToStringStyle()

      Constructor.

      Use the static constant rather than instantiating.

  • Method Details

    • readResolve

      private Object readResolve()

      Ensure Singleton after serialization.

      Returns:
      the singleton