| java.lang.Object net.sf.jga.fn.string.StringFunctors
StringFunctors | final public class StringFunctors (Code) | | Static factory methods for the functors in the String package.
Copyright © 2006 David A. Hall
author: David A. Hall |
Method Summary | |
public static UnaryFunctor<T, String> | defaultFormat() Returns a functor that presents its argument in String form using the argument's
toString() method. | public static UnaryFunctor<Object[], String> | formatValue(MessageFormat format) | public static UnaryFunctor<T, String> | formatValue(DateFormat format) | public static UnaryFunctor<T, String> | formatValue(NumberFormat format) | public static UnaryFunctor<String, Boolean> | match(String regex) | public static UnaryFunctor<String, Boolean> | match(Pattern pattern) | public static UnaryFunctor<String, R> | parseFormat(Format format, UnaryFunctor<Object, R> converter) Returns a functor that parses its argument using the given format and returns an object
of the given class. | public static UnaryFunctor<String, R> | parseFormat(Class<R> dateClass, DateFormat format) Returns a functor that parses its argument using the given format and returns an object
of the given class. | public static UnaryFunctor<String, R> | parseFormat(Class<R> numClass, NumberFormat format) Returns a functor that parses its argument using the given format and returns an object
of the given class. |
defaultFormat | public static UnaryFunctor<T, String> defaultFormat()(Code) | | Returns a functor that presents its argument in String form using the argument's
toString() method.
|
parseFormat | public static UnaryFunctor<String, R> parseFormat(Class<R> dateClass, DateFormat format)(Code) | | Returns a functor that parses its argument using the given format and returns an object
of the given class.
|
parseFormat | public static UnaryFunctor<String, R> parseFormat(Class<R> numClass, NumberFormat format)(Code) | | Returns a functor that parses its argument using the given format and returns an object
of the given class.
|
|
|