org.assertj.core.presentation
Class HexadecimalRepresentation

java.lang.Object
  extended by org.assertj.core.presentation.HexadecimalRepresentation
All Implemented Interfaces:
Representation

public class HexadecimalRepresentation
extends Object
implements Representation

Hexadecimal object representation instead of standard java representation.

Author:
Mariusz Smykula

Field Summary
static int NIBBLE_SIZE
           
static String PREFIX
           
 
Constructor Summary
HexadecimalRepresentation()
           
 
Method Summary
 String toStringOf(Object object)
          Returns hexadecimal the toString representation of the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final String PREFIX
See Also:
Constant Field Values

NIBBLE_SIZE

public static final int NIBBLE_SIZE
See Also:
Constant Field Values
Constructor Detail

HexadecimalRepresentation

public HexadecimalRepresentation()
Method Detail

toStringOf

public String toStringOf(Object object)
Returns hexadecimal the toString representation of the given object. It may or not the object's own implementation of toString.

Specified by:
toStringOf in interface Representation
Parameters:
object - the given object.
Returns:
the toString representation of the given object.


Copyright © 2013–2015 AssertJ. All rights reserved.