olg.csv.bean.formatter
Class ArrayFormatter<T>
java.lang.Object
olg.csv.bean.formatter.Formatter<T[]>
olg.csv.bean.formatter.ArrayFormatter<T>
- Type Parameters:
T
- The formatter deals array of T class.
public final class ArrayFormatter<T>
- extends Formatter<T[]>
Converts array of T into String.
Method Summary |
String |
toString(T[] array)
Default implementation based on toString Method of the given t. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formatter
private final Formatter<T> formatter
- Formatter responsible of formatting T object.
ArrayFormatter
private ArrayFormatter(Formatter<T> formatter)
- Constructs an instance with a formatter.
- Parameters:
formatter
- formatter responsible of T converting
ArrayFormatter
private ArrayFormatter()
- Constructs an instance with default formatter.
toString
public String toString(T[] array)
- Description copied from class:
Formatter
- Default implementation based on toString Method of the given t.
- Overrides:
toString
in class Formatter<T[]>
- Parameters:
array
- the value to format.
- Returns:
- the formatted value.
Copyright © 2014. All Rights Reserved.