Package org.assertj.core.presentation
Class CompositeRepresentation
java.lang.Object
org.assertj.core.presentation.CompositeRepresentation
- All Implemented Interfaces:
Representation
-
Field Summary
Fields inherited from interface org.assertj.core.presentation.Representation
DEFAULT_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
toStringOf
(Object object) Returns theString
representation of the given object.unambiguousToStringOf
(Object object) Override this method to return aString
representation of the given object that is unambigous so that it can be differentiated from other objects with the sameRepresentation.toStringOf(Object)
representation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.assertj.core.presentation.Representation
getPriority
-
Constructor Details
-
CompositeRepresentation
-
-
Method Details
-
toStringOf
Description copied from interface:Representation
Returns theString
representation of the given object. It may or may not be the object's own implementation oftoString
.- Specified by:
toStringOf
in interfaceRepresentation
- Parameters:
object
- the object to represent.- Returns:
- the
toString
representation of the given object.
-
unambiguousToStringOf
Description copied from interface:Representation
Override this method to return aString
representation of the given object that is unambigous so that it can be differentiated from other objects with the sameRepresentation.toStringOf(Object)
representation.The default implementation calls
Representation.toStringOf(Object)
but theStandardRepresentation
adds the object hexadecimal identity hash code.- Specified by:
unambiguousToStringOf
in interfaceRepresentation
- Parameters:
object
- the object to represent.- Returns:
- the unambiguous
toString
representation of the given object.
-
toString
-
getAllRepresentationsOrderedByPriority
-