|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dtolabs.rundeck.core.utils.ToStringFormatter
public class ToStringFormatter
a toString formatter utility. Takes a map of key value pairs that represent the fields in an object and prints them in a formatted manner. Nested objects included in the map will have their toString() method called.
Example output on an instance ofcom.dtolabs.rundeck.core.types.controller.ExecuteAction
:
ExecuteAction{user='rubble', failonerror='true', command='Command{executionDaemonized='false', name='aCommand'}',
context='Context{project='TestSshCommand', resourceType='TypeA', resourceName='aTypeInstance'}',
strategy='ant', adExecutable='ad', properties='[]'}
Method Summary | |
---|---|
static ToStringFormatter |
create(java.lang.Object obj,
java.util.Map params)
Factory method. |
java.lang.String |
toString()
Prints message. |
java.lang.String |
toString(boolean fiilterNulls)
Prints message with contents of params map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ToStringFormatter create(java.lang.Object obj, java.util.Map params)
obj
- Object to print toString message forparams
- map of key value pairs to print in message
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean fiilterNulls)
fiilterNulls
- if true, null values and their keys will not be included
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |