net.sf.jga.fn.string
public class FormatValue<T> extends AbstractUnaryFunctor<T,String> implements Serializable
Copyright © 2003 David A. Hall
Nested Class Summary | |
---|---|
interface | FormatValue.Visitor
Interface for classes that may interpret a FormatValue
predicate. |
Constructor Summary | |
---|---|
FormatValue(Format format) |
Method Summary | |
---|---|
void | accept(Visitor v)
Calls the Visitor's visit(FormatValue) method, if it
implements the nested Visitor interface. |
String | fn(T arg)
Formats the argument using the java.text.Format given at construction
|
Format | getFormat()
Returns the format object used to present values in formatted form. |
String | toString() |
visit(FormatValue)
method, if it
implements the nested Visitor interface.Parameters: arg the value to formatted
Returns: the formatted value
Returns: the format used to present values