/** * Helper method used for chaining columns together using next-linkage, * as well as ensuring that indexes are correct. */ private static Column[] _link(Column[] orig) { int i = orig.length; Column[] result = new Column[i]; Column prev = null; for (; --i >= 0; ) { Column curr = orig[i].withNext(i, prev); result[i] = curr; prev = curr; } return result; }
/** * Helper method used for chaining columns together using next-linkage, * as well as ensuring that indexes are correct. */ private static Column[] _link(Column[] orig) { int i = orig.length; Column[] result = new Column[i]; Column prev = null; for (; --i >= 0; ) { Column curr = orig[i].withNext(i, prev); result[i] = curr; prev = curr; } return result; }