public interface IString extends CharSequence
| Modifier and Type | Method and Description |
|---|---|
IString |
append(char c)
Append a character.
|
IString |
append(char[] chars,
int offset,
int len)
Append characters.
|
IString |
append(CharSequence s)
Append characters.
|
default char[][] |
asCharacters()
Convert into an array of character arrays.
|
CharBuffer[] |
asCharBuffers()
Convert into an array of character buffers.
|
default String |
asString()
Convert this string into a Java string.
|
boolean |
endsWith(CharSequence end)
Return true if this string ends with the given one.
|
default boolean |
equals(CharSequence s)
Compare the given CharSequence with this string.
|
default int |
fill(char[] chars)
Fill the given character array with the content of this string.
|
int |
fill(char[] chars,
int start)
Fill the given character array with the content of this string.
|
default int |
indexOf(char c)
Return the index of the first occurrence of the given character, or -1 if not found.
|
int |
indexOf(char c,
int start)
Return the index of the first occurrence of the given character, starting at the given position, or -1 if not found.
|
default int |
indexOf(CharSequence s)
Return the index of the first occurrence of the given CharSequence, or -1 if not found.
|
int |
indexOf(CharSequence s,
int start)
Return the index of the first occurrence of the given CharSequence, starting at the given position, or -1 if not found.
|
default boolean |
isStartOf(CharSequence s)
Return true if this string is a start for the given one.
|
IString |
removeEndChars(int nb)
Remove the given number of characters at the end.
|
IString |
removeStartChars(int nb)
Remove the given number of characters at the beginning.
|
IString |
replace(char oldChar,
char newChar)
Replace all occurrences of oldChar into newChar.
|
void |
setCharAt(int index,
char c)
Set a character.
|
List<? extends IString> |
split(char sep)
Return a list of strings, by splitting the current string using the given character as separator.
|
boolean |
startsWith(CharSequence start)
Return true if this string starts with the given one.
|
IString |
substring(int start)
Return a sub-string starting at the given position until the end.
|
IString |
substring(int start,
int end)
Return a sub-string starting at the given start position (included) until the given end position (excluded).
|
IString |
toLowerCase()
Convert this string to lower case.
|
IString |
toUpperCase()
Convert this string to upper case.
|
default IString |
trim()
Remove spaces characters at the beginning and the end of this string, and return this instance.
|
IString |
trimBeginning()
Remove spaces characters at the beginning of this string.
|
IString |
trimEnd()
Remove spaces characters at the end of this string.
|
charAt, chars, codePoints, length, subSequence, toStringvoid setCharAt(int index,
char c)
throws IllegalArgumentException
IllegalArgumentExceptionIString append(char c)
IString append(char[] chars, int offset, int len)
IString append(CharSequence s)
int indexOf(char c,
int start)
int indexOf(CharSequence s, int start)
default int indexOf(char c)
default int indexOf(CharSequence s)
IString substring(int start)
IString substring(int start, int end)
int fill(char[] chars,
int start)
default int fill(char[] chars)
IString trimBeginning()
IString trimEnd()
default IString trim()
IString replace(char oldChar, char newChar)
IString removeEndChars(int nb)
IString removeStartChars(int nb)
IString toLowerCase()
IString toUpperCase()
List<? extends IString> split(char sep)
default boolean equals(CharSequence s)
boolean startsWith(CharSequence start)
boolean endsWith(CharSequence end)
default boolean isStartOf(CharSequence s)
default String asString()
default char[][] asCharacters()
CharBuffer[] asCharBuffers()
Copyright © 2017. All rights reserved.