public ColumnBuilder<T_ROW, T_COL> autoAligned(final Collection<T_ROW> data) {

                final boolean isNumeric = data.stream()
                        .allMatch(k -> k != null
                                && Number.class.isAssignableFrom(k.getClass()));

                this.alignment = isNumeric
                        ? Alignment.RIGHT
                        : Alignment.LEFT;
                return this;
            }
A column builder for when you need full control over the column style
stroom-util/src/main/java/stroom/util/logging/AsciiTable.java