info.informatica.text
Class HexFormat
java.lang.Object
info.informatica.text.ObjectFormat
info.informatica.text.NumberFormat
info.informatica.text.HexFormat
- All Implemented Interfaces:
- Alignable
public final class HexFormat
- extends NumberFormat
- Version:
- 1.02
- Author:
- amengual at informatica dot info
|
Method Summary |
String |
format(Object o)
Formats an object according to the format specification set by
setFormat. |
Object |
sample()
Produce a sample of this format. |
HexFormat
public HexFormat()
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
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.