public class CharSubSequence extends CoreCharSequence
CharSequence Interface that can be used to implement the method
CharSequence.subSequence(int, int). length (at least it should NOT shrink)!| Modifier and Type | Field and Description |
|---|---|
private int |
length
the length of the sub-sequence
|
private CharSequence |
original
the original sequence that is wrapped here
|
private int |
start
the start position of the sub-sequence
|
| Constructor and Description |
|---|
CharSubSequence(CharSequence originalSequence,
int startPosition,
int endPosition)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
int |
length() |
CharSequence |
subSequence(int startPosition,
int endPosition) |
contentChanged, equals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointsprivate final CharSequence original
private final int start
private final int length
public CharSubSequence(CharSequence originalSequence, int startPosition, int endPosition)
originalSequence - is the underlying sequence.startPosition - is the start-index in originalSequence.endPosition - is the end-index in originalSequence.public CharSequence subSequence(int startPosition, int endPosition)
public int length()
public char charAt(int index)
Copyright © 2001–2016 mmm-Team. All rights reserved.