Package org.assertj.core.presentation
Class HexadecimalRepresentation
- java.lang.Object
-
- org.assertj.core.presentation.StandardRepresentation
-
- org.assertj.core.presentation.HexadecimalRepresentation
-
- All Implemented Interfaces:
Representation
public class HexadecimalRepresentation extends StandardRepresentation
Hexadecimal object representation instead of standard java representation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.assertj.core.presentation.StandardRepresentation
StandardRepresentation.GroupType
-
-
Field Summary
Fields Modifier and Type Field Description static HexadecimalRepresentationHEXA_REPRESENTATIONstatic intNIBBLE_SIZEstatic java.lang.StringPREFIX-
Fields inherited from class org.assertj.core.presentation.StandardRepresentation
ELEMENT_SEPARATOR, ELEMENT_SEPARATOR_WITH_NEWLINE, INDENTATION_AFTER_NEWLINE, INDENTATION_FOR_SINGLE_LINE, STANDARD_REPRESENTATION
-
Fields inherited from interface org.assertj.core.presentation.Representation
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description HexadecimalRepresentation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringtoGroupedHex(java.lang.Number value, int size)private static java.lang.StringtoHex(java.lang.Number value, int sizeInBits)protected java.lang.StringtoStringOf(java.lang.Byte b)protected java.lang.StringtoStringOf(java.lang.Character character)protected java.lang.StringtoStringOf(java.lang.Double d)protected java.lang.StringtoStringOf(java.lang.Float f)protected java.lang.StringtoStringOf(java.lang.Integer i)protected java.lang.StringtoStringOf(java.lang.Long l)protected java.lang.StringtoStringOf(java.lang.Number number)java.lang.StringtoStringOf(java.lang.Object object)Returns hexadecimal thetoStringrepresentation of the given object.protected java.lang.StringtoStringOf(java.lang.Short s)protected java.lang.StringtoStringOf(Representation representation, java.lang.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, unambiguousToStringOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.assertj.core.presentation.Representation
getPriority
-
-
-
-
Field Detail
-
HEXA_REPRESENTATION
public static final HexadecimalRepresentation HEXA_REPRESENTATION
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
NIBBLE_SIZE
public static final int NIBBLE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
toStringOf
public java.lang.String toStringOf(java.lang.Object object)
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
protected java.lang.String toStringOf(java.lang.Number number)
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
protected java.lang.String toStringOf(java.lang.Byte b)
-
toStringOf
protected java.lang.String toStringOf(java.lang.Short s)
-
toStringOf
protected java.lang.String toStringOf(java.lang.Integer i)
-
toStringOf
protected java.lang.String toStringOf(java.lang.Long l)
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
protected java.lang.String toStringOf(java.lang.Float f)
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
protected java.lang.String toStringOf(java.lang.Double d)
-
toStringOf
protected java.lang.String toStringOf(java.lang.Character character)
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
protected java.lang.String toStringOf(Representation representation, java.lang.String s)
-
toGroupedHex
private static java.lang.String toGroupedHex(java.lang.Number value, int size)
-
toHex
private static java.lang.String toHex(java.lang.Number value, int sizeInBits)
-
-