java.lang
Class CharSequence
getAt
public CharSequence getAt(int index)
-
- Support the subscript operator for CharSequence.
- Parameters:
index
- the index of the Character to get.
- Returns:
- the Character at the given index
- Since:
- 1.0
getAt
public CharSequence getAt(Range range)
-
- Support the range subscript operator for CharSequence
- Parameters:
range
- a Range.
- Returns:
- the subsequence CharSequence
- Since:
- 1.0
getAt
public CharSequence getAt(IntRange range)
-
- Support the range subscript operator for CharSequence or StringBuffer with IntRange
- Parameters:
range
- an IntRange.
- Returns:
- the subsequence CharSequence
- Since:
- 1.0
getAt
public CharSequence getAt(EmptyRange range)
-
- Support the range subscript operator for CharSequence or StringBuffer with EmptyRange
- Parameters:
range
- an EmptyRange.
- Returns:
- the subsequence CharSequence
- Since:
- 1.5.0
getAt
public CharSequence getAt(Collection indices)
-
- Select a List of characters from a CharSequence using a Collection
to identify the indices to be selected.
- Parameters:
indices
- a Collection of indices.
- Returns:
- a CharSequence consisting of the characters at the given indices
- Since:
- 1.0