Class PrimitiveStringifier


  • public abstract class PrimitiveStringifier
    extends Object
    Class that provides string representations for the primitive values. These string values are to be used for logging/debugging purposes. The method stringify is overloaded for each primitive types. The overloaded methods not implemented for the related types throw OperationNotSupportedException.
    • Method Detail

      • stringify

        public String stringify​(boolean value)
        Parameters:
        value - the value to be stringified
        Returns:
        the string representation for value
        Throws:
        UnsupportedOperationException - if value type is not supported by this stringifier
      • stringify

        public String stringify​(int value)
        Parameters:
        value - the value to be stringified
        Returns:
        the string representation for value
        Throws:
        UnsupportedOperationException - if value type is not supported by this stringifier
      • stringify

        public String stringify​(long value)
        Parameters:
        value - the value to be stringified
        Returns:
        the string representation for value
        Throws:
        UnsupportedOperationException - if value type is not supported by this stringifier
      • stringify

        public String stringify​(float value)
        Parameters:
        value - the value to be stringified
        Returns:
        the string representation for value
        Throws:
        UnsupportedOperationException - if value type is not supported by this stringifier
      • stringify

        public String stringify​(double value)
        Parameters:
        value - the value to be stringified
        Returns:
        the string representation for value
        Throws:
        UnsupportedOperationException - if value type is not supported by this stringifier
      • stringify

        public String stringify​(Binary value)
        Parameters:
        value - the value to be stringified
        Returns:
        the string representation for value
        Throws:
        UnsupportedOperationException - if value type is not supported by this stringifier