Top Fields Constructors Methods
org.assertj.core.presentation

public Class CompositeRepresentation

extends Object
implements Representation
Class Inheritance
All Implemented Interfaces
org.assertj.core.presentation.Representation
Static Imports
java.util.Comparator.comparingInt, java.util.stream.Collectors.toList, org.assertj.core.presentation.StandardRepresentation.STANDARD_REPRESENTATION

Field Summary

Modifier and TypeField and Description
private final List<Representation>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<Representation>
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public String
toStringOf(Object
the object to represent.
object
)

Implements org.assertj.core.presentation.Representation.toStringOf.

Returns the String representation of the given object.
public String
unambiguousToStringOf(Object
the object to represent.
object
)

Overrides default org.assertj.core.presentation.Representation.unambiguousToStringOf.

Override this method to return a String representation of the given object that is unambigous so that it can be differentiated from other objects with the same toStringOf(Object) representation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

representationsback to summary
private final List<Representation> representations

Constructor Detail

CompositeRepresentationback to summary
public CompositeRepresentation(List<Representation> representations)

Method Detail

getAllRepresentationsOrderedByPriorityback to summary
public List<Representation> getAllRepresentationsOrderedByPriority()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
toStringOfback to summary
public String toStringOf(Object object)

Implements org.assertj.core.presentation.Representation.toStringOf.

Doc from org.assertj.core.presentation.Representation.toStringOf.

Returns the String representation of the given object. It may or may not be the object's own implementation of toString.

Parameters
object:Object

the object to represent.

Returns:String

the toString representation of the given object.

Annotations
@Override
unambiguousToStringOfback to summary
public String unambiguousToStringOf(Object object)

Overrides default org.assertj.core.presentation.Representation.unambiguousToStringOf.

Doc from org.assertj.core.presentation.Representation.unambiguousToStringOf.

Override this method to return a String representation of the given object that is unambigous so that it can be differentiated from other objects with the same toStringOf(Object) representation.

The default implementation calls toStringOf(Object) but the StandardRepresentation adds the object hexadecimal identity hash code.

Parameters
object:Object

the object to represent.

Returns:String

the unambiguous toString representation of the given object.

Annotations
@Override