| Modifier and Type | Class and Description |
|---|---|
| protected static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final Class | |
| private static final Map | |
| private static final String | |
| private static final String | |
| private static final String | |
| public static final String | |
| public static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| private static int | |
| private static int | |
| private static int | |
| private static final String | |
| public static final StandardRepresentation | |
| private static final String | |
| private static final String | |
| private static final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| private static Object | |
| protected <T> String | |
| private String | |
| private static boolean | |
| protected String | Returns: totoString representation for the given objectthe object to represent (never object)nullReturns the |
| protected String | |
| protected String | |
| protected String | |
| private String | |
| protected String | Returns: theString representation of the given array.the object that is expected to be an array. o)Returns the |
| private String | |
| protected String | |
| public static int | |
| public static int | |
| public static int | |
| protected boolean | Returns: true if the given object's type has a representation that is not ambiguous, false otherwise.the object to check obj)Determine whether the given object's type has a representation that is not ambiguous. |
| protected boolean | |
| private static boolean | |
| private static boolean | |
| private static String | |
| private static boolean | |
| protected String | |
| protected String | |
| public static < the type to register a formatter for T> void | registerFormatterForType(Class<T>
the class of the type to register a formatter for type, Function<T, String> the formatter formatter)Registers new formatter for the given type. |
| public static void | removeAllRegisteredFormatters()
Clear all formatters registered per type with |
| private List | |
| private static String | |
| public static void | |
| protected String | |
| public static void | |
| public static void | |
| public static void | |
| protected String | |
| protected String | |
| protected String | Returns: theString representation of the given Iterable.the iterable)Iterable to format.Returns the |
| protected String | |
| private static Map | |
| public String | |
| public String | Returns: thetoString representation of the given object.the given object. object)Implements org. toString representation of the given object.
|
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| private String | |
| private String | |
| private String | |
| private String | |
| public String | Returns: the unambiguoustoString representation of the given object.the object to represent. obj)Overrides default org. String representation of the given object with its type and hexadecimal identity hash code so that
it can be differentiated from other objects with the same toStringOf(Object) representation.
|
| BLACKLISTED_ITERABLE_CLASSES | back to summary |
|---|---|
| private static final Class<?>[] BLACKLISTED_ITERABLE_CLASSES | |
| customFormatterByType | back to summary |
|---|---|
| private static final Map<Class<?>, Function<?, ? extends CharSequence>> customFormatterByType | |
| DEFAULT_END | back to summary |
|---|---|
| private static final String DEFAULT_END | |
| DEFAULT_MAX_ELEMENTS_EXCEEDED | back to summary |
|---|---|
| private static final String DEFAULT_MAX_ELEMENTS_EXCEEDED | |
| DEFAULT_START | back to summary |
|---|---|
| private static final String DEFAULT_START | |
| ELEMENT_SEPARATOR | back to summary |
|---|---|
| public static final String ELEMENT_SEPARATOR | |
| ELEMENT_SEPARATOR_WITH_NEWLINE | back to summary |
|---|---|
| public static final String ELEMENT_SEPARATOR_WITH_NEWLINE | |
| INDENTATION_AFTER_NEWLINE | back to summary |
|---|---|
| pack-priv static final String INDENTATION_AFTER_NEWLINE | |
| INDENTATION_FOR_SINGLE_LINE | back to summary |
|---|---|
| pack-priv static final String INDENTATION_FOR_SINGLE_LINE | |
| maxElementsForPrinting | back to summary |
|---|---|
| private static int maxElementsForPrinting | |
| maxLengthForSingleLineDescription | back to summary |
|---|---|
| private static int maxLengthForSingleLineDescription | |
| maxStackTraceElementsDisplayed | back to summary |
|---|---|
| private static int maxStackTraceElementsDisplayed | |
| NULL | back to summary |
|---|---|
| private static final String NULL | |
| STANDARD_REPRESENTATION | back to summary |
|---|---|
| public static final StandardRepresentation STANDARD_REPRESENTATION | |
| TUPLE_END | back to summary |
|---|---|
| private static final String TUPLE_END | |
| TUPLE_START | back to summary |
|---|---|
| private static final String TUPLE_START | |
| TYPE_WITH_UNAMBIGUOUS_REPRESENTATION | back to summary |
|---|---|
| private static final Class<?>[] TYPE_WITH_UNAMBIGUOUS_REPRESENTATION | |
| StandardRepresentation | back to summary |
|---|---|
| public StandardRepresentation() | |
| classNameDisambiguation | back to summary |
|---|---|
| protected String classNameDisambiguation(Object o) | |
| classNameOf | back to summary |
|---|---|
| private static Object classNameOf(Object obj) | |
| customFormat | back to summary |
|---|---|
protected <T> String customFormat(T object)
| |
| defaultToStringWithClassNameDisambiguation | back to summary |
|---|---|
| private String defaultToStringWithClassNameDisambiguation(Object o) | |
| doesDescriptionFitOnSingleLine | back to summary |
|---|---|
| private static boolean doesDescriptionFitOnSingleLine(String singleLineDescription) | |
| fallbackToStringOf | back to summary |
|---|---|
| protected String fallbackToStringOf(Object object) Returns the | |
| format | back to summary |
|---|---|
| protected String format(Object[] array, String start, String end, String elementSeparator, String indentation, Object root) | |
| format | back to summary |
|---|---|
| protected String format(List<?> elements, String start, String end, String elementSeparator, String indentation, Object root) | |
| format | back to summary |
|---|---|
| protected String format(Iterable<?> iterable, String start, String end, String elementSeparator, String indentation, Object root) | |
| format | back to summary |
|---|---|
| private String format(Map<?, ?> map, Object o) | |
| formatArray | back to summary |
|---|---|
| protected String formatArray(Object o) Returns the | |
| formatLines | back to summary |
|---|---|
| private String formatLines(List<?> lines) | |
| formatPrimitiveArray | back to summary |
|---|---|
| protected String formatPrimitiveArray(Object o) | |
| getMaxElementsForPrinting | back to summary |
|---|---|
public static int getMaxElementsForPrinting()
| |
| getMaxLengthForSingleLineDescription | back to summary |
|---|---|
public static int getMaxLengthForSingleLineDescription()
| |
| getMaxStackTraceElementsDisplayed | back to summary |
|---|---|
public static int getMaxStackTraceElementsDisplayed()
| |
| hasAlreadyAnUnambiguousToStringOf | back to summary |
|---|---|
| protected boolean hasAlreadyAnUnambiguousToStringOf(Object obj) Determine whether the given object's type has a representation that is not ambiguous.
| |
| hasCustomFormatterFor | back to summary |
|---|---|
| protected boolean hasCustomFormatterFor(Object object) | |
| hasOverriddenToString | back to summary |
|---|---|
| private static boolean hasOverriddenToString(Class<?> clazz) | |
| hasOverriddenToStringInSubclassOf | back to summary |
|---|---|
| private static boolean hasOverriddenToStringInSubclassOf(Class<?> objectClass, Class<?> clazz) | |
| identityHexCodeOf | back to summary |
|---|---|
| private static String identityHexCodeOf(Object obj) | |
| isInstanceOfNotOverridingToString | back to summary |
|---|---|
| private static boolean isInstanceOfNotOverridingToString(Object object, Class<?> type) | |
| multiLineFormat | back to summary |
|---|---|
| protected String multiLineFormat(Iterable<?> iterable) | |
| multiLineFormat | back to summary |
|---|---|
| protected String multiLineFormat(Object[] array, Object root) | |
| registerFormatterForType | back to summary |
|---|---|
| public static <T> void registerFormatterForType(Class<T> type, Function<T, String> formatter) Registers new formatter for the given type. All instances of the given type will be formatted with the provided formatter. | |
| removeAllRegisteredFormatters | back to summary |
|---|---|
| public static void removeAllRegisteredFormatters() Clear all formatters registered per type with | |
| representElements | back to summary |
|---|---|
| private List | |
| representGroup | back to summary |
|---|---|
| private static String representGroup(List<String> representedElements, String start, String end, String elementSeparator, String indentation) | |
| resetDefaults | back to summary |
|---|---|
| public static void resetDefaults() It resets the static defaults for the standard representation. The following defaults will be reapplied:
| |
| safeStringOf | back to summary |
|---|---|
| protected String safeStringOf(Object element, String start, String end, String elementSeparator, String indentation, Object root) | |
| setMaxElementsForPrinting | back to summary |
|---|---|
| public static void setMaxElementsForPrinting(int value) | |
| setMaxLengthForSingleLineDescription | back to summary |
|---|---|
| public static void setMaxLengthForSingleLineDescription(int value) | |
| setMaxStackTraceElementsDisplayed | back to summary |
|---|---|
| public static void setMaxStackTraceElementsDisplayed(int value) | |
| singleLineFormat | back to summary |
|---|---|
| protected String singleLineFormat(Iterable<?> iterable, String start, String end) | |
| singleLineFormat | back to summary |
|---|---|
| protected String singleLineFormat(Object[] array, Object root) | |
| smartFormat | back to summary |
|---|---|
| protected String smartFormat(Iterable<?> iterable) Returns the
The | |
| smartFormat | back to summary |
|---|---|
| protected String smartFormat(Object[] array) | |
| toSortedMapIfPossible | back to summary |
|---|---|
| private static Map | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toStringOf | back to summary |
|---|---|
| public String toStringOf(Object object) Implements org. Returns standard the | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Number number) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(AtomicBoolean atomicBoolean) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(AtomicInteger atomicInteger) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(AtomicLong atomicLong) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(LongAdder longAdder) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Comparator<?> comparator) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(ComparatorBasedComparisonStrategy comparatorBasedComparisonStrategy) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Calendar calendar) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Class<?> c) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(String s) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Character c) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(PredicateDescription p) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Date date) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(LocalDateTime localDateTime) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(OffsetDateTime offsetDateTime) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(ZonedDateTime zonedDateTime) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(LocalDate localDate) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(YearMonth yearMonth) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Float f) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Long l) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(File file) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(SimpleDateFormat dateFormat) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Future<?> future) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Tuple tuple) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(MapEntry<?, ?> mapEntry) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Map. | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Map<?, ?> map) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(Throwable throwable) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(AtomicReference<?> atomicReference) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(AtomicMarkableReference<?> atomicMarkableReference) | |
| toStringOf | back to summary |
|---|---|
| protected String toStringOf(AtomicStampedReference<?> atomicStampedReference) | |
| toStringOf | back to summary |
|---|---|
| private String toStringOf(ChangeDelta<?> changeDelta) | |
| toStringOf | back to summary |
|---|---|
| private String toStringOf(DeleteDelta<?> deleteDelta) | |
| toStringOf | back to summary |
|---|---|
| private String toStringOf(InsertDelta<?> insertDelta) | |
| toStringOf | back to summary |
|---|---|
| private String toStringOf(Duration duration) | |
| unambiguousToStringOf | back to summary |
|---|---|
| public String unambiguousToStringOf(Object obj) Overrides default org. Returns the | |
| Modifier and Type | Field and Description |
|---|---|
| public static final StandardRepresentation. | |
| private String | |
| public static final StandardRepresentation. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public static StandardRepresentation. | |
| public static StandardRepresentation. |
| ARRAY | back to summary |
|---|---|
| public static final StandardRepresentation. | |
| description | back to summary |
|---|---|
| private String description | |
| ITERABLE | back to summary |
|---|---|
| public static final StandardRepresentation. | |
| GroupType | back to summary |
|---|---|
| private GroupType(String value) | |
| description | back to summary |
|---|---|
| public String description() | |
| valueOf | back to summary |
|---|---|
| public static StandardRepresentation. | |
| values | back to summary |
|---|---|
| public static StandardRepresentation. | |