Class HexFormat

All Implemented Interfaces:
Alignable

public class HexFormat extends NumberFormat
  • Constructor Details

    • HexFormat

      public HexFormat()
  • Method Details

    • format

      public String format(Object o)
      Description copied from class: ObjectFormat
      Formats an object according to the format specification set by setFormat.

      Must be overriden by subclasses.

      Specified by:
      format in class ObjectFormat
      Parameters:
      o - the object to be formatted.
      Returns:
      a string with the formatted object.
    • sample

      public Object sample()
      Description copied from class: ObjectFormat
      Produce a sample of this format.
      Specified by:
      sample in class ObjectFormat
      Returns:
      a String with a (more or less) random object appropriate to be formatted according to current format specifications.