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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringtoStringOf(java.lang.Object object)Returns theStringrepresentation of the given object.java.lang.StringunambiguousToStringOf(java.lang.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
java.lang.String toStringOf(java.lang.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
java.lang.String unambiguousToStringOf(java.lang.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.
-
-