# Class: com.pnfsoftware.jeb.util.base.CharSequenceList

Manager for a list of [CharSequence](CharSequence), itself a [CharSequence](CharSequence). 

 Sequences in the list are joined with a new\-line character. Example in pseudo\-code:
 `CharSequence("abc", "def") => "abc\ndef\n"`

## Constructor: CharSequenceList
- parameter: `elts`, type: `java.util.List<java.lang.CharSequence>`

Description: Create an object from a list of CharSequence objects. The list is not deeply copied. The caller must ensure its contents is not modified after construction.
parameter: elts: list of strings

## Method: charAt
- parameter: `index`, type: `int`
- return type: `char`


## Method: length
- return type: `int`


## Method: subSequence
- parameter: `start`, type: `int`
- parameter: `end`, type: `int`
- return type: `java.lang.CharSequence`


## Method: toString
- return type: `java.lang.String`


## Method: toString
- parameter: `maxCharsPerLine`, type: `int`
- parameter: `charsEndLine`, type: `int`
- return type: `java.lang.String`

Description: Format this sequence as a string while optionally shortening long lines.
parameter: maxCharsPerLine: maximum number of characters to keep per line
parameter: charsEndLine: number of trailing characters to preserve when a line is shortened
return: formatted string

## Static Method: getLine
- parameter: `line`, type: `java.lang.CharSequence`
- parameter: `maxCharsPerLine`, type: `int`
- parameter: `charsEndLine`, type: `int`
- return type: `java.lang.CharSequence`

Description: Shorten a line if it exceeds the provided length limit.
parameter: line: input line
parameter: maxCharsPerLine: maximum number of characters to keep
parameter: charsEndLine: number of trailing characters to preserve
return: the original line, or a shortened line containing an ellipsis marker

