Class HexadecimalRepresentation

  • All Implemented Interfaces:
    Representation

    public class HexadecimalRepresentation
    extends StandardRepresentation
    Hexadecimal object representation instead of standard java representation.
    • Constructor Detail

      • HexadecimalRepresentation

        public HexadecimalRepresentation()
    • Method Detail

      • toStringOf

        public java.lang.String toStringOf​(java.lang.Object object)
        Returns hexadecimal the toString representation of the given object. It may or not the object's own implementation of toString.
        Specified by:
        toStringOf in interface Representation
        Overrides:
        toStringOf in class StandardRepresentation
        Parameters:
        object - the given object.
        Returns:
        the toString representation of the given object.
      • 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.Double d)
      • 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)