CharSequence composed of other character sequences.
All methods delegate to one or more of the underlying character sequences, using relative indexes.
| Modifier and Type | Field and Description |
|---|---|
| private transient int | |
| private final List | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | CompositeCharSequence(CharSequence...
an array of character sequences. sequences)Constructs a new composite character sequence. |
| public | CompositeCharSequence(List<CharSequence>
a list of character sequences. sequences)Constructs a new composite character sequence. |
| Modifier and Type | Method and Description |
|---|---|
| public char | charAt(int
the index of the index)char value to be returnedImplements java. char value at the specified index.
|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public int | |
| public int | |
| public CharSequence | subSequence(int
the start index, inclusive start, int the end index, exclusive end)Implements java. CharSequence that is a subsequence of this sequence.
|
| public String | toString()
Overrides java. Implements java. |
| hashCode | back to summary |
|---|---|
| private transient int hashCode | |
| sequences | back to summary |
|---|---|
| private final List<CharSequence> sequences | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| CompositeCharSequence | back to summary |
|---|---|
| public CompositeCharSequence(CharSequence... sequences) Constructs a new composite character sequence.
| |
| CompositeCharSequence | back to summary |
|---|---|
| public CompositeCharSequence(List<CharSequence> sequences) Constructs a new composite character sequence.
| |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Doc from java. Returns a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Doc from java. Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence. | |