public final class DisplayableFormat extends Format
Displayable
interface.
Cannot parse.Format.Field
Modifier and Type | Field and Description |
---|---|
static DisplayableFormat |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos) |
Object |
parseObject(String source,
ParsePosition pos)
Throws an
UnsupportedOperationException . |
clone, format, formatToCharacterIterator, parseObject
public static final DisplayableFormat INSTANCE
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
Appends the object's default display string,
or nothing of obj
is null
.
format
in class Format
IllegalArgumentException
- if obj
is not a Displayable
public Object parseObject(String source, ParsePosition pos)
UnsupportedOperationException
.parseObject
in class Format
UnsupportedOperationException
- alwaysCopyright © 2014 JGoodies Software GmbH. All rights reserved.