Package org.assertj.core.presentation
Class HexadecimalRepresentation
java.lang.Object
org.assertj.core.presentation.StandardRepresentation
org.assertj.core.presentation.HexadecimalRepresentation
- All Implemented Interfaces:
Representation
Hexadecimal object representation instead of standard java representation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HexadecimalRepresentation
static final int
static final String
Fields inherited from class org.assertj.core.presentation.StandardRepresentation
ELEMENT_SEPARATOR, ELEMENT_SEPARATOR_WITH_NEWLINE, INDENTATION_AFTER_NEWLINE, INDENTATION_FOR_SINGLE_LINE, STANDARD_REPRESENTATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
toGroupedHex
(Number value, int size) private static String
protected String
toStringOf
(Byte b) protected String
toStringOf
(Character character) protected String
toStringOf
(Double d) protected String
toStringOf
(Float f) protected String
protected String
toStringOf
(Long l) protected String
toStringOf
(Number number) toStringOf
(Object object) Returns hexadecimal thetoString
representation of the given object.protected String
toStringOf
(Short s) protected String
toStringOf
(Representation representation, String s) Methods inherited from class org.assertj.core.presentation.StandardRepresentation
customFormat, 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, unambiguousToStringOf
-
Field Details
-
HEXA_REPRESENTATION
-
PREFIX
- See Also:
-
NIBBLE_SIZE
public static final int NIBBLE_SIZE- See Also:
-
-
Constructor Details
-
HexadecimalRepresentation
public HexadecimalRepresentation()
-
-
Method Details
-
toStringOf
Returns hexadecimal thetoString
representation of the given object. It may or not the object's own implementation oftoString
.- Specified by:
toStringOf
in interfaceRepresentation
- Overrides:
toStringOf
in classStandardRepresentation
- Parameters:
object
- the given object.- Returns:
- the
toString
representation of the given object.
-
toStringOf
- Overrides:
toStringOf
in classStandardRepresentation
-
toStringOf
-
toStringOf
-
toStringOf
-
toStringOf
- Overrides:
toStringOf
in classStandardRepresentation
-
toStringOf
- Overrides:
toStringOf
in classStandardRepresentation
-
toStringOf
-
toStringOf
- Overrides:
toStringOf
in classStandardRepresentation
-
toStringOf
-
toGroupedHex
-
toHex
-