row 1: a1, b1, c1 row 2: a2, b2, c2 row 3: a3, b3, c3
public interface Array2D_To_FlipArray extends IsTransformer<String[][],String[][]>
Transforms a 2-dimensional array of strings into a new 2-dimensional array of strings. Consider the input array representing a table, the output array will have rows converted to columns and columns converted to rows.
Consider an input array being a table as
row 1: a1, b1, c1 row 2: a2, b2, c2 row 3: a3, b3, c3
The transformed array will be
row 1: a1, a2, a3 row 2: b1, b2, b3 row 3: c1, c2, c3
| Modifier and Type | Method and Description |
|---|---|
static Array2D_To_FlipArray |
create()
Creates a new transformer.
|
default String[][] |
transform(String[][] ar)
Transforms from one representation to another.
|
apply, transformdefault String[][] transform(String[][] ar)
TransformerTransforms from one representation to another.
transform in interface Transformer<String[][],String[][]>ar - input representationstatic Array2D_To_FlipArray create()
Creates a new transformer.
Copyright © 2016–2017. All rights reserved.