public interface IString extends CharSequence
Modifier and Type | Method and Description |
---|---|
void |
append(char c)
Append a character.
|
void |
append(char[] chars,
int offset,
int len)
Append characters.
|
void |
append(CharSequence s)
Append characters.
|
default String |
asString()
Convert this string into a Java string.
|
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.
|
List<? extends IString> |
split(char sep)
Return a list of strings, by splitting the current string using the given character as separator.
|
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).
|
void |
toLowerCase()
Convert this string to lower case.
|
void |
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.
|
void |
trimBeginning()
Remove spaces characters at the beginning of this string.
|
void |
trimEnd()
Remove spaces characters at the end of this string.
|
charAt, chars, codePoints, length, subSequence, toString
void append(char c)
void append(char[] chars, int offset, int len)
void 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)
void trimBeginning()
void trimEnd()
default IString trim()
void toLowerCase()
void toUpperCase()
List<? extends IString> split(char sep)
default boolean equals(CharSequence s)
default String asString()
Copyright © 2017. All rights reserved.