public interface Array2D_To_NormalizedArray extends IsTransformer<String[][],String[][]>
Transforms a 2-dimensional array into a normalized 2-dimensional array. Normalized means that all rows in the returned array have the same number of columns. Additionally, all columns will have the same length, space being added to pad.
| Modifier and Type | Method and Description |
|---|---|
static Array2D_To_NormalizedArray |
create(int columns)
Creates a new transformer.
|
int |
getNumberOfColumns()
Returns the number of columns,
|
default String[][] |
transform(String[][] ar)
Transforms from one representation to another.
|
apply, transformint getNumberOfColumns()
Returns the number of columns,
NullPointerException - if argument was nulldefault String[][] transform(String[][] ar)
TransformerTransforms from one representation to another.
transform in interface Transformer<String[][],String[][]>ar - input representationstatic Array2D_To_NormalizedArray create(int columns)
Creates a new transformer.
columns - number of columnsCopyright © 2016–2017. All rights reserved.