Top Description Fields Constructors Methods
org.assertj.core.presentation

public Class UnicodeRepresentation

extends StandardRepresentation
Class Inheritance
Imports
java.util.Formatter

Unicode object representation instead of standard java representation.
Author
Mariusz Smykula

Field Summary

Modifier and TypeField and Description
public static final UnicodeRepresentation
Inherited from org.assertj.core.presentation.StandardRepresentation:
ELEMENT_SEPARATORELEMENT_SEPARATOR_WITH_NEWLINEINDENTATION_AFTER_NEWLINEINDENTATION_FOR_SINGLE_LINESTANDARD_REPRESENTATION

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
public String

Returns:

the toString representation of the given object.
toStringOf
(Object
the given object.
object
)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

Implements org.assertj.core.presentation.Representation.toStringOf.

Returns hexadecimal the toString representation of the given String or Character.
protected String
protected String
Inherited from org.assertj.core.presentation.StandardRepresentation:
classNameDisambiguationcustomFormatfallbackToStringOfformatformatformatformatArrayformatPrimitiveArraygetMaxElementsForPrintinggetMaxLengthForSingleLineDescriptiongetMaxStackTraceElementsDisplayedhasAlreadyAnUnambiguousToStringOfhasCustomFormatterFormultiLineFormatmultiLineFormatregisterFormatterForTyperemoveAllRegisteredFormattersresetDefaultssafeStringOfsetMaxElementsForPrintingsetMaxLengthForSingleLineDescriptionsetMaxStackTraceElementsDisplayedsingleLineFormatsingleLineFormatsmartFormatsmartFormattoStringtoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOfunambiguousToStringOf

Field Detail

UNICODE_REPRESENTATIONback to summary
public static final UnicodeRepresentation UNICODE_REPRESENTATION

Constructor Detail

UnicodeRepresentationback to summary
public UnicodeRepresentation()

Method Detail

escapeUnicodeback to summary
private static String escapeUnicode(String input)
toStringOfback to summary
public String toStringOf(Object object)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

Implements org.assertj.core.presentation.Representation.toStringOf.

Returns hexadecimal the toString representation of the given String or Character.

Parameters
object:Object

the given object.

Returns:String

the toString representation of the given object.

Annotations
@Override
toStringOfback to summary
protected String toStringOf(Character string)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

Annotations
@Override
toStringOfback to summary
protected String toStringOf(String string)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

Annotations
@Override