public class FormattedObject extends Object implements IFormattedObject
| Constructor and Description |
|---|
FormattedObject(Object aValue,
IFormatter aFormatter)
Init the field with a value.
|
FormattedObject(Object aValue,
IFormatterProvider aFormatterProvider)
Init the field with a value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAsString()
Get the value converted to a string with the specified formatter.
|
IFormatter |
getFormatter() |
Object |
getValue()
Get the original value.
|
int |
hashCode() |
String |
toString() |
public FormattedObject(@Nullable Object aValue, @Nullable IFormatter aFormatter)
aValue - The value to be used. May be null.aFormatter - The optional formatter to use. May be null.public FormattedObject(@Nullable Object aValue, @Nonnull IFormatterProvider aFormatterProvider)
aValue - The value to be used. May be null.aFormatterProvider - The optional formatter to use. May not be null.@Nullable public Object getValue()
IFormattedObjectgetValue in interface IFormattedObjectnull.@Nonnull public IFormatter getFormatter()
getFormatter in interface IFormattedObjectnull.@Nullable public String getAsString()
IFormattedObjectgetAsString in interface IFormattedObjectgetAsString in interface IHasStringRepresentationnull
dependent on the semantics of the formatter.Copyright © 2006–2014 phloc systems. All rights reserved.