|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.util.PrettyStringBuilder
public class PrettyStringBuilder
Constructs pretty string representation of object value.
Field Summary | |
---|---|
protected int |
deep
|
protected int |
maxDeep
|
protected int |
maxItemsToShow
|
protected String |
moreValue
|
protected String |
nullValue
|
Constructor Summary | |
---|---|
PrettyStringBuilder()
|
Method Summary | |
---|---|
int |
getMaxDeep()
|
int |
getMaxItemsToShow()
|
String |
getMoreValue()
|
String |
getNullValue()
|
void |
setMaxDeep(int maxDeep)
Sets how deep to examine inner objects. |
void |
setMaxItemsToShow(int maxItemsToShow)
Sets the max number of items of arrays, collections and maps to show. |
void |
setMoreValue(String moreValue)
Sets string for 'more'. |
void |
setNullValue(String nullValue)
Sets null value representation. |
static String |
str(Object value)
Static version for quick access. |
protected String |
toPrettyString(Object obj)
Returns pretty value from object value. |
String |
toString(Object value)
Returns pretty string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int maxItemsToShow
protected int maxDeep
protected int deep
protected String nullValue
protected String moreValue
Constructor Detail |
---|
public PrettyStringBuilder()
Method Detail |
---|
public int getMaxItemsToShow()
public void setMaxItemsToShow(int maxItemsToShow)
public int getMaxDeep()
public void setMaxDeep(int maxDeep)
public String getNullValue()
public void setNullValue(String nullValue)
null
value representation.
public String getMoreValue()
public void setMoreValue(String moreValue)
protected String toPrettyString(Object obj)
public String toString(Object value)
public static String str(Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |