Package org.assertj.core.presentation
Interface Representation
- All Known Implementing Classes:
BinaryRepresentation
,HexadecimalRepresentation
,StandardRepresentation
,UnicodeRepresentation
public interface Representation
Controls the formatting (String representation) of types in assertion error message.
-
Method Summary
Modifier and TypeMethodDescriptiontoStringOf
(Object object) Returns theString
representation of the given object.unambiguousToStringOf
(Object object) Returns theString
representation of the given object with its type and hexadecimal hash code so that it can be differentied from other objects with the sametoStringOf(Object)
representation.
-
Method Details
-
toStringOf
Returns theString
representation of the given object. It may or not the object's own implementation oftoString
.- Parameters:
object
- the object to represent.- Returns:
- the
toString
representation of the given object.
-
unambiguousToStringOf
Returns theString
representation of the given object with its type and hexadecimal hash code so that it can be differentied from other objects with the sametoStringOf(Object)
representation.- Parameters:
object
- the object to represent.- Returns:
- the
toString
representation of the given object.
-