Class ToStringParameters

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String parameterName, java.lang.Object parameterValue)
      Adds a parameter with the specified name and value to this ToStringParameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • add

        public void add​(java.lang.String parameterName,
                        java.lang.Object parameterValue)
        Adds a parameter with the specified name and value to this ToStringParameters.

        If there is a parameter with the same name already the new parameter will NOT be added. This guarantees that in a diamond-shaped multiple inheritance situation the parameters of the topmost superclass are not added several times.

        Same name means instance equality, i.e. the same string literal constant name will not be added twice, but if one specifies a dynamically created name the parameter will be added twice. It is recommended (and the usual way) to use string literal constants for toString-parameter names always.

        The parameter name must not be null (but may be an empty string).

        The parameter value may be null.

        Parameters:
        parameterName - parameter name
        parameterValue - parameter value