Interface Representation

All Known Implementing Classes:
BinaryRepresentation, HexadecimalRepresentation, StandardRepresentation, UnicodeRepresentation

public interface Representation
Controls the formatting (String representation) of types in assertion error message.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the String representation of the given object.
    Returns the String representation of the given object with its type and hexadecimal hash code so that it can be differentied from other objects with the same toStringOf(Object) representation.
  • Method Details

    • toStringOf

      String toStringOf(Object object)
      Returns the String representation of the given object. It may or not the object's own implementation of toString.
      Parameters:
      object - the object to represent.
      Returns:
      the toString representation of the given object.
    • unambiguousToStringOf

      String unambiguousToStringOf(Object object)
      Returns the String representation of the given object with its type and hexadecimal hash code so that it can be differentied from other objects with the same toStringOf(Object) representation.
      Parameters:
      object - the object to represent.
      Returns:
      the toString representation of the given object.