private static String makeAsciiTableCell ( Object obj , int padLeft , int padRight , boolean tsv ) { String result = obj . toString ( ) ; if ( padLeft > 0 ) { result = padLeft ( result , padLeft ) ; } if ( padRight > 0 ) { result = pad ( result , padRight ) ; } if ( tsv ) { result = result + ' ' ; } return result ; }
The cell String is the string representation of the object . If padLeft is greater than 0 it is padded . Ditto right