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

public Class BinaryRepresentation

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

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

Field Summary

Modifier and TypeField and Description
public static final BinaryRepresentation
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
toBinary(String value, int size)

private static String
toGroupedBinary(String value, int size)

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 binary the toString representation of the given object.
protected String
toStringOf(Representation representation, String s)

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

Field Detail

BINARY_REPRESENTATIONback to summary
public static final BinaryRepresentation BINARY_REPRESENTATION
BYTE_PREFIXback to summary
public static final String BYTE_PREFIX

Constructor Detail

BinaryRepresentationback to summary
public BinaryRepresentation()

Method Detail

toBinaryback to summary
private static String toBinary(String value, int size)
toGroupedBinaryback to summary
private static String toGroupedBinary(String value, int size)
toStringOfback to summary
public String toStringOf(Object object)

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

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

Returns binary 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(Representation representation, String s)
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