|
Colt 1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.matrix.impl.FormerFactory
public class FormerFactory
Factory producing implementations of Former
via method create();
Implementations of can use existing libraries such as corejava.PrintfFormat or corejava.Format or other.
Serves to isolate the interface of String formatting from the actual implementation.
If you want to plug in a different String formatting implementation, simply replace this class with your alternative.
Constructor Summary | |
---|---|
FormerFactory()
|
Method Summary | |
---|---|
Former |
create(java.lang.String format)
Constructs and returns a new format instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormerFactory()
Method Detail |
---|
public Former create(java.lang.String format)
s
- the format string following printf conventions.
The string has a prefix, a format code and a suffix. The prefix and suffix
become part of the formatted output. The format code directs the
formatting of the (single) parameter to be formatted. The code has the
following structure
java.lang.IllegalArgumentException
- if bad format
|
Colt 1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |