Top Description Fields Constructors Methods
org.assertj.core.presentation

public Class HexadecimalRepresentation

extends StandardRepresentation
Class Inheritance
Static Imports
org.assertj.core.util.Strings.concat

Hexadecimal object representation instead of standard java representation.
Author
Mariusz Smykula

Field Summary

Modifier and TypeField and Description
public static final HexadecimalRepresentation
public static final int
public static final String
Inherited from org.assertj.core.presentation.StandardRepresentation:
ELEMENT_SEPARATORELEMENT_SEPARATOR_WITH_NEWLINEINDENTATION_AFTER_NEWLINEINDENTATION_FOR_SINGLE_LINESTANDARD_REPRESENTATION

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
toGroupedHex(Number value, int size)

private static String
toHex(Number value, int sizeInBits)

public String

Returns:

the toString representation of the given object.
toStringOf
(Object
the given object.
object
)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

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

Returns hexadecimal the toString representation of the given object.
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
toStringOf(Representation representation, String s)

Inherited from org.assertj.core.presentation.StandardRepresentation:
classNameDisambiguationcustomFormatfallbackToStringOfformatformatformatformatArrayformatPrimitiveArraygetMaxElementsForPrintinggetMaxLengthForSingleLineDescriptiongetMaxStackTraceElementsDisplayedhasAlreadyAnUnambiguousToStringOfhasCustomFormatterFormultiLineFormatmultiLineFormatregisterFormatterForTyperemoveAllRegisteredFormattersresetDefaultssafeStringOfsetMaxElementsForPrintingsetMaxLengthForSingleLineDescriptionsetMaxStackTraceElementsDisplayedsingleLineFormatsingleLineFormatsmartFormatsmartFormattoStringtoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOftoStringOfunambiguousToStringOf

Field Detail

HEXA_REPRESENTATIONback to summary
public static final HexadecimalRepresentation HEXA_REPRESENTATION
NIBBLE_SIZEback to summary
public static final int NIBBLE_SIZE
PREFIXback to summary
public static final String PREFIX

Constructor Detail

HexadecimalRepresentationback to summary
public HexadecimalRepresentation()

Method Detail

toGroupedHexback to summary
private static String toGroupedHex(Number value, int size)
toHexback to summary
private static String toHex(Number value, int sizeInBits)
toStringOfback to summary
public String toStringOf(Object object)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

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

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

Parameters
object:Object

the given object.

Returns:String

the toString representation of the given object.

Annotations
@Override
toStringOfback to summary
protected String toStringOf(Number number)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

Annotations
@Override
toStringOfback to summary
protected String toStringOf(Byte b)
toStringOfback to summary
protected String toStringOf(Short s)
toStringOfback to summary
protected String toStringOf(Integer i)
toStringOfback to summary
protected String toStringOf(Long l)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

Annotations
@Override
toStringOfback to summary
protected String toStringOf(Float f)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

Annotations
@Override
toStringOfback to summary
protected String toStringOf(Double d)
toStringOfback to summary
protected String toStringOf(Character character)

Overrides org.assertj.core.presentation.StandardRepresentation.toStringOf.

Annotations
@Override
toStringOfback to summary
protected String toStringOf(Representation representation, String s)