public class CompositeRepresentation extends Object implements Representation
DEFAULT_PRIORITY| Constructor and Description |
|---|
CompositeRepresentation(List<Representation> representations) |
| Modifier and Type | Method and Description |
|---|---|
List<Representation> |
getAllRepresentationsOrderedByPriority() |
String |
toString() |
String |
toStringOf(Object object)
Returns the
String representation of the given object. |
String |
unambiguousToStringOf(Object object)
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 Representation.toStringOf(Object) representation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPrioritypublic CompositeRepresentation(List<Representation> representations)
public String toStringOf(Object object)
RepresentationString representation of the given object. It may or may not be the object's own implementation of
toString.toStringOf in interface Representationobject - the object to represent.toString representation of the given object.public String unambiguousToStringOf(Object object)
RepresentationString representation of the given object that is unambigous so that it can
be differentiated from other objects with the same Representation.toStringOf(Object) representation.
The default implementation calls Representation.toStringOf(Object) but the StandardRepresentation adds
the object hexadecimal identity hash code.
unambiguousToStringOf in interface Representationobject - the object to represent.toString representation of the given object.public List<Representation> getAllRepresentationsOrderedByPriority()
Copyright © 2025. All rights reserved.