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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
toStringOf(java.lang.Object object)
Returns theString
representation of the given object.java.lang.String
unambiguousToStringOf(java.lang.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 Detail
-
toStringOf
java.lang.String toStringOf(java.lang.Object object)
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
java.lang.String unambiguousToStringOf(java.lang.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.- Parameters:
object
- the object to represent.- Returns:
- the
toString
representation of the given object.
-
-