| | |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2012-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package com.forgerock.opendj.cli; |
| | | |
| | |
| | | * <p> |
| | | * The following code sample presents how to create a {@link MultiColumnPrinter} to write CSV data: |
| | | * <pre> |
| | | * final List<MultiColumnPrinter.Column> columns = new ArrayList<>(); |
| | | * final List<MultiColumnPrinter.Column> columns = new ArrayList<>(); |
| | | * columns.add(MultiColumnPrinter.column("CountryNameColumnId", "country_name", 0)); |
| | | * columns.add(MultiColumnPrinter.column("populationDensityId", "population_density", 1)); |
| | | * columns.add(MultiColumnPrinter.column("GiniId", "gini", 1)); |
| | |
| | | * The following code sample presents how to configure a {@link MultiColumnPrinter} |
| | | * to print the same data on console with some title headers. |
| | | * <pre> |
| | | * final List<MultiColumnPrinter.Column> columns = new ArrayList<>(); |
| | | * final List<MultiColumnPrinter.Column> columns = new ArrayList<>(); |
| | | * columns.add(MultiColumnPrinter.separatorColumn()); |
| | | * columns.add(MultiColumnPrinter.column("CountryNameColumnId", "Country Name", 15, 0)); |
| | | * columns.add(MultiColumnPrinter.column("populationDensityId", "Density", 10, 1)); |