com.davidbracewell.string.TableFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mango Show documentation
Show all versions of mango Show documentation
A set of utilities and tools to speed up and ease programming in Java.
package com.davidbracewell.string;
import com.davidbracewell.conversion.Cast;
import com.davidbracewell.io.resource.Resource;
import com.davidbracewell.io.resource.StringResource;
import lombok.NonNull;
import java.io.IOException;
import java.io.PrintStream;
import java.io.Serializable;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
/**
* The type Table formatter.
*
* @author David B. Bracewell
*/
public class TableFormatter implements Serializable {
private static final long serialVersionUID = 1L;
private static final int MIN_CELL_WIDTH = 5;
private static final DecimalFormat longNumberFormatter = new DecimalFormat("0.0E0");
private static final DecimalFormat normalNumberFormatter = new DecimalFormat("0.000#####");
private List © 2015 - 2025 Weber Informatics LLC | Privacy Policy