public interface MoreToString
Modifier and Type | Interface and Description |
---|---|
static class |
MoreToString.Helper
Helper class for MoreToString toString() calls.
|
Modifier and Type | Field and Description |
---|---|
static int |
COMMA |
static int |
CURLY_BRACES |
static java.lang.String[] |
delimiters |
static int |
EQUALS |
static java.util.Map<java.lang.String,java.lang.String[]> |
formatOptions |
static int |
NO_FORMAT |
static int |
PARENTHESES |
static int |
PERIOD |
static java.lang.String[] |
prefixes |
static int |
SQUARE_BRACES |
static java.lang.String[] |
suffixes |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toShortString() |
java.lang.String |
toString(boolean withHash,
boolean deep,
java.util.Set<java.lang.Object> seen)
Write object recursively based on passed options.
|
java.lang.String |
toString(boolean withHash,
boolean deep,
java.util.Set<java.lang.Object> seen,
java.util.Map<java.lang.String,java.lang.Object> otherOptions)
Write object recursively based on passed options.
|
static final int NO_FORMAT
static final int SQUARE_BRACES
static final int CURLY_BRACES
static final int PARENTHESES
static final int COMMA
static final int PERIOD
static final int EQUALS
static final java.lang.String[] prefixes
static final java.lang.String[] suffixes
static final java.lang.String[] delimiters
static final java.util.Map<java.lang.String,java.lang.String[]> formatOptions
java.lang.String toString(boolean withHash, boolean deep, java.util.Set<java.lang.Object> seen)
withHash
- whether to include "@" + hasCode() in the returned String.deep
- whether to include member/child detail and call their
MoreToString.toString() (typically) with the same options.seen
- whether the object has already been written with deep=true, in
which case it will set deep=false to end the recursion.java.lang.String toString(boolean withHash, boolean deep, java.util.Set<java.lang.Object> seen, java.util.Map<java.lang.String,java.lang.Object> otherOptions)
withHash
- whether to include "@" + hasCode() in the returned String.deep
- whether to include member/child detail and call their
MoreToString.toString() (typically) with the same options.seen
- whether the object has already been written with deep=true, in
which case it will set deep=false to end the recursion.otherOptions
- other class or context-specific options with names and values.java.lang.String toShortString()