public class BinaryRepresentation extends StandardRepresentation
Modifier and Type | Field and Description |
---|---|
static BinaryRepresentation |
BINARY_REPRESENTATION |
static String |
BYTE_PREFIX |
ELEMENT_SEPARATOR, ELEMENT_SEPARATOR_WITH_NEWLINE, STANDARD_REPRESENTATION
Constructor and Description |
---|
BinaryRepresentation() |
Modifier and Type | Method and Description |
---|---|
protected String |
toStringOf(Byte b) |
protected String |
toStringOf(Character character) |
protected String |
toStringOf(Double d) |
protected String |
toStringOf(Float f) |
protected String |
toStringOf(Integer i) |
protected String |
toStringOf(Long l) |
protected String |
toStringOf(Number number) |
String |
toStringOf(Object object)
Returns binary the
toString representation of the given object. |
protected String |
toStringOf(Representation representation,
String s) |
protected String |
toStringOf(Short s) |
customFormat, fallbackToStringOf, format, format, formatArray, formatPrimitiveArray, getMaxLengthForSingleLineDescription, hasCustomFormatterFor, multiLineFormat, multiLineFormat, registerFormatterForType, removeAllRegisteredFormatters, resetDefaults, setMaxElementsForPrinting, setMaxLengthForSingleLineDescription, singleLineFormat, singleLineFormat, smartFormat, smartFormat, toString, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, unambiguousToStringOf
public static final BinaryRepresentation BINARY_REPRESENTATION
public static final String BYTE_PREFIX
public String toStringOf(Object object)
toString
representation of the given object. It may or not the object's own
implementation of toString
.toStringOf
in interface Representation
toStringOf
in class StandardRepresentation
object
- the given object.toString
representation of the given object.protected String toStringOf(Representation representation, String s)
protected String toStringOf(Number number)
toStringOf
in class StandardRepresentation
protected String toStringOf(Long l)
toStringOf
in class StandardRepresentation
protected String toStringOf(Float f)
toStringOf
in class StandardRepresentation
protected String toStringOf(Character character)
toStringOf
in class StandardRepresentation
Copyright © 2014–2019 AssertJ. All rights reserved.