Package org.assertj.core.presentation
Interface Representation
-
- All Known Implementing Classes:
BinaryRepresentation,HexadecimalRepresentation,StandardRepresentation,UnicodeRepresentation
public interface RepresentationControls the formatting (String representation) of types in assertion error message.- Author:
- Mariusz Smykula
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringtoStringOf(Object object)Returns theStringrepresentation of the given object.StringunambiguousToStringOf(Object object)Returns theStringrepresentation 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
String toStringOf(Object object)
Returns theStringrepresentation of the given object. It may or not the object's own implementation oftoString.- Parameters:
object- the object to represent.- Returns:
- the
toStringrepresentation of the given object.
-
unambiguousToStringOf
String unambiguousToStringOf(Object object)
Returns theStringrepresentation 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
toStringrepresentation of the given object.
-
-