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.
- Author:
- Mariusz Smykula
-
Nested Class Summary
Nested classes/interfaces inherited from class org.assertj.core.presentation.StandardRepresentation
StandardRepresentation.GroupType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HexadecimalRepresentationstatic final intstatic final StringFields inherited from class org.assertj.core.presentation.StandardRepresentation
ELEMENT_SEPARATOR, ELEMENT_SEPARATOR_WITH_NEWLINE, STANDARD_REPRESENTATIONFields inherited from interface org.assertj.core.presentation.Representation
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringtoStringOf(Byte b) protected StringtoStringOf(Character character) protected StringtoStringOf(Double d) protected StringtoStringOf(Float f) protected Stringprotected StringtoStringOf(Long l) protected StringtoStringOf(Number number) toStringOf(Object object) Returns hexadecimal thetoStringrepresentation of the given object.protected StringtoStringOf(Short s) protected StringtoStringOf(Representation representation, String s) Methods inherited from class org.assertj.core.presentation.StandardRepresentation
classNameDisambiguation, customFormat, fallbackToStringOf, format, format, format, formatArray, formatPrimitiveArray, getMaxElementsForPrinting, getMaxLengthForSingleLineDescription, getMaxStackTraceElementsDisplayed, hasAlreadyAnUnambiguousToStringOf, hasCustomFormatterFor, multiLineFormat, multiLineFormat, registerFormatterForType, removeAllRegisteredFormatters, resetDefaults, safeStringOf, setMaxElementsForPrinting, setMaxLengthForSingleLineDescription, setMaxStackTraceElementsDisplayed, singleLineFormat, singleLineFormat, smartFormat, smartFormat, toString, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toUnquotedStringOf, unambiguousToStringOfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.assertj.core.presentation.Representation
getPriority
-
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 thetoStringrepresentation of the given object. It may or not the object's own implementation oftoString.- Specified by:
toStringOfin interfaceRepresentation- Overrides:
toStringOfin classStandardRepresentation- Parameters:
object- the given object.- Returns:
- the
toStringrepresentation of the given object.
-
toStringOf
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
-
toStringOf
-
toStringOf
-
toStringOf
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
-
toStringOf
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
-