Class ToStringStyle.NoClassNameToStringStyle

java.lang.Object
org.apache.commons.lang3.builder.ToStringStyle
org.apache.commons.lang3.builder.ToStringStyle.NoClassNameToStringStyle
All Implemented Interfaces:
Serializable
Enclosing class:
ToStringStyle

private static final class ToStringStyle.NoClassNameToStringStyle extends ToStringStyle
ToStringStyle that does not print out the class name and identity hash code but prints content start and field names.

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

  • Field Details

  • Constructor Details

    • NoClassNameToStringStyle

      NoClassNameToStringStyle()
      Constructs a new instance.

      Use the static constant rather than instantiating.

  • Method Details

    • readResolve

      private Object readResolve()
      Ensure Singleton after serialization.
      Returns:
      the singleton