/** * Truncates or pads the string value of the specified object as necessary * to ensure that the returned string's length equals the specified cell size. * @param obj the value to be put in the 'cell' * @param cellsize the size of the cell into which the object must be placed * @return truncated/padded string */ public String cell(Object obj, int cellsize) { return cell(obj, cellsize, this.defaultCellSuffix); }
/** * Truncates or pads the string value of the specified object as necessary * to ensure that the returned string's length equals the default cell size. * @param obj the value to be put in the 'cell' * @return truncated/padded string */ public String cell(Object obj) { return cell(obj, this.defaultCellLength); }
/** * Truncates or pads the string value of the specified object as necessary * to ensure that the returned string's length equals the default cell size. * If truncation is necessary, the specified suffix will replace the end of * the string value to indicate that. * @param obj the value to be put in the 'cell' * @param suffix the suffix to put at the end of any values that need truncating * to indicate that they've been truncated * @return truncated/padded string */ public String cell(Object obj, String suffix) { return cell(obj, this.defaultCellLength, suffix); }