✗
public abstract interface CharSequence
Methods
- ✗public abstract char charAt(int arg0)Comparing jdk-20-ga and jdk-21+35
charAt
char charAt(int index) Returns thecharvalue at the specified index. An index ranges from zero tolength() - 1. The firstcharvalue of the sequence is at index zero, the next at index one, and so on, as for array indexing.If the
charvalue specified by the index is a Moved out of a link with destination ../../../java.base/java/lang/Character.html#unicode.Moved to a link with destination Character.html#unicode.surrogate, the surrogate value is returned.- Parameters:
index- the index of thecharvalue to be returned- Returns:
- the specified
charvalue - Throws:
IndexOutOfBoundsException- if theindexargument is negative or not less thanlength()
- ✗public default java.util.stream.IntStream chars()Comparing jdk-20-ga and jdk-21+35
chars
Returns a stream ofintzero-extending thecharvalues from this sequence. Any char which maps to a Moved out of a link with destination ../../../java.base/java/lang/Character.html#unicode.Moved to a link with destination Character.html#unicode.surrogate code pointMoved out of a link with destination ../../../java.base/java/lang/Character.html#unicode.Moved to a link with destination Character.html#unicode. is passed through uninterpreted.The stream binds to this sequence when the terminal stream operation commences (specifically, for mutable sequences the spliterator for the stream is late-binding ). If the sequence is modified during that operation then the result is undefined.
- Returns:
- an IntStream of char values from this sequence
- Since:
- 1.8
- ✓public default java.util.stream.IntStream codePoints()
- ✓public static int compare(java.lang.CharSequence arg0, java.lang.CharSequence arg1)
- ✓public default boolean isEmpty()
- ✓public abstract int length()
- ✓public abstract java.lang.CharSequence subSequence(int arg0, int arg1)
- ✓public abstract java.lang.String toString()
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| charAt(int) | 1 | 1 | ||||||||
| chars() | 2 | 2 | ||||||||
| Total | 3 | 3 | ||||||||