インタフェース SString
- すべてのスーパーインタフェース:
Comparable<String>,SLockable,SScalar<String>,SVariable,Unlockable
- 既知の実装クラスのリスト:
SStringImpl
Represents the string data.
-
メソッドの概要
修飾子とタイプメソッド説明intCompares this string and the specified string lexicographically.intcompareToIgnoreCase(String string) Compares this string and the specified string lexicographically, ignoring case differences.Concatenates the specified string to the end of this string.booleancontains(CharSequence sequence) Returns true if this string contains the specified sequence of char values.booleanReturns true if this string ends with the specified suffix.booleanReturns true if the specified target is equal to this.booleanequalsIgnoreCase(String string) Returns true if this string is equal to the specified string, ignoring case considerations.intindexOf(int ch) Returns the index within this string of the first occurrence of the specified character.intindexOf(int ch, int fromIndex) Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index.intReturns the index within this string of the first occurrence of the specified substring.intReturns the index within this string of the first occurrence of the specified substring, starting at the specified index.booleanisEmpty()Returns true if length() is less than or equal to 0.intlastIndexOf(int ch) Returns the index within this string of the last occurrence of the specified character.intlastIndexOf(int ch, int fromIndex) Returns the index within this string of the last occurrence of the specified character, searching backward starting at the specified index.intlastIndexOf(String substring) Returns the index within this string of the last occurrence of the specified substring.intlastIndexOf(String substring, int fromIndex) Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index.intlength()Returns the length of this string.booleanReturns true if this string matches the specified regular expression.booleanstartsWith(String prefix) Returns true if this string starts with the specified prefix.booleanstartsWith(String prefix, int toffset) Returns true if the substring of this string beginning at the specified index starts with the specified prefix.substring(int beginIndex) Returns a new string that is a substring of this string.substring(int beginIndex, int endIndex) Returns a new string that is a substring of this string.Converts all of the characters in this String to lower case using the rules of the default locale and returns it.toLowerCase(Locale locale) Converts all of the characters in this String to lower case using the rules of the given Locale and returns it.Converts all of the characters in this String to upper case using the rules of the default locale and returns it.toUpperCase(Locale locale) Converts all of the characters in this String to upper case using the rules of the given locale and returns it.trim()Returns a copy of this string, with leading and trailing whitespace omitted.インタフェースから継承されたメソッド org.wcardinal.controller.data.SLockable
isLocked, lock, tryLock, tryLock, unlock, unlockインタフェースから継承されたメソッド org.wcardinal.controller.data.SScalar
compareAndSet, contains, containsAll, equals, get, getAndSet, getValue, indexOf, isNotNull, isNull, lastIndexOf, reset, resetValue, set, setValue, size, toDirtyインタフェースから継承されたメソッド org.wcardinal.controller.data.SVariable
initialize, isInitialized, isNonNull, isReadOnly
-
メソッドの詳細
-
compareTo
Compares this string and the specified string lexicographically.- 定義:
compareToインタフェース内Comparable<String>- パラメータ:
string- string to be compared- 戻り値:
- a negative integer, zero, or a positive integer as this string is less than, equal to, or greater than the specified string
- 関連項目:
-
compareToIgnoreCase
Compares this string and the specified string lexicographically, ignoring case differences.- パラメータ:
string- string to be compared- 戻り値:
- a negative integer, zero, or a positive integer as this string is less than, equal to, or greater than the specified string
- 関連項目:
-
concat
Concatenates the specified string to the end of this string. Returns null if this string is null.- パラメータ:
string- string to be concatenated- 戻り値:
- concatenated string
- 関連項目:
-
contains
Returns true if this string contains the specified sequence of char values.- パラメータ:
sequence- sequence to search for- 戻り値:
- true if this string contains the specified sequence of char values
- 関連項目:
-
endsWith
Returns true if this string ends with the specified suffix.- パラメータ:
suffix- suffix to search for- 戻り値:
- true if this string ends with the specified suffix
- 関連項目:
-
equalsIgnoreCase
Returns true if this string is equal to the specified string, ignoring case considerations.- パラメータ:
string- string to be compared- 戻り値:
- true if this string is equal to the specified string ignoring case considerations
- 関連項目:
-
indexOf
Returns the index within this string of the first occurrence of the specified character. Returns -1 if no such character occurs in this string.- パラメータ:
ch- character to search for- 戻り値:
- the index within this string of the first occurence of the specified character
- 関連項目:
-
indexOf
Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index. Returns -1 if no such character occurs in this string.- パラメータ:
ch- character to search forfromIndex- index to start the search from- 戻り値:
- the index within this string of the first occurence of the specified character
- 関連項目:
-
indexOf
Returns the index within this string of the first occurrence of the specified substring. Returns -1 if no such substring occurs in this string.- パラメータ:
substring- substring to search for- 戻り値:
- index within this string of the first occurence of the specified substring
- 関連項目:
-
indexOf
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index. Returns -1 if no such substring occurs in this string.- パラメータ:
substring- substring to searhc forfromIndex- where to begin searching the specified substring- 戻り値:
- index within this string of the first occurrence of the specified substring
- 関連項目:
-
isEmpty
Returns true if length() is less than or equal to 0. -
lastIndexOf
Returns the index within this string of the last occurrence of the specified character. Returns -1 if no such character occurs in this string.- パラメータ:
ch- character to searhc for- 戻り値:
- index within this string of the last occurrence of the specified character
- 関連項目:
-
lastIndexOf
Returns the index within this string of the last occurrence of the specified character, searching backward starting at the specified index. Returns -1 if no such character occurs in this string.- パラメータ:
ch- character to search forfromIndex- where to begin searching the specified character- 戻り値:
- index within this string of the last occurrence of the specified character
- 関連項目:
-
lastIndexOf
Returns the index within this string of the last occurrence of the specified substring. Returns -1 if no such substring occurs in this string.- パラメータ:
substring- substring to search for- 戻り値:
- index within this string of the last occurrence of the specified substring
- 関連項目:
-
lastIndexOf
Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index. Returns -1 if no such substring occurs in this string.- パラメータ:
substring- substring to search forfromIndex- where to begin searching the specified substring- 戻り値:
- index within this string of the last occurrence of the specified substring
- 関連項目:
-
length
Returns the length of this string. Returns -1 if this string is null.- 戻り値:
- length of this string
- 関連項目:
-
matches
Returns true if this string matches the specified regular expression. Returns false if this string is null.- パラメータ:
regex- regular expression to which this string is to be matched- 戻り値:
- true if this string matches the specified regular expression
- 関連項目:
-
startsWith
Returns true if this string starts with the specified prefix. Returns false if this string is null.- パラメータ:
prefix- prefix to search for- 戻り値:
- true if the substring of this string starts with the specified prefix
- 関連項目:
-
startsWith
Returns true if the substring of this string beginning at the specified index starts with the specified prefix. Returns false if this string is null.- パラメータ:
prefix- prefix to search fortoffset- where to begin looking in this string- 戻り値:
- true if the substring of this string beginning at the specified index starts with the specified prefix
- 関連項目:
-
substring
Returns a new string that is a substring of this string.- パラメータ:
beginIndex- begining index (inclusive)- 戻り値:
- substring of this string
- 例外:
IndexOutOfBoundsException- if beginIndex is negative or larger than the length of this String object- 関連項目:
-
substring
Returns a new string that is a substring of this string.- パラメータ:
beginIndex- beginning index (inclusive)endIndex- ending index (exclusive)- 戻り値:
- substring of this string
- 例外:
IndexOutOfBoundsException- if beginIndex is negative or larger than the length of this String object- 関連項目:
-
toLowerCase
Converts all of the characters in this String to lower case using the rules of the default locale and returns it. Returns null if this string is null.- 戻り値:
- string converted to lowercase
- 関連項目:
-
toLowerCase
Converts all of the characters in this String to lower case using the rules of the given Locale and returns it. Returns null if this string is null.- パラメータ:
locale- use the case transformation rules for this locale- 戻り値:
- string converted to lowercase
- 関連項目:
-
toUpperCase
Converts all of the characters in this String to upper case using the rules of the default locale and returns it. Returns null if this string is null.- 戻り値:
- string converted to uppercase
- 関連項目:
-
toUpperCase
Converts all of the characters in this String to upper case using the rules of the given locale and returns it. Returns null if this string is null.- パラメータ:
locale- use the case transformation rules for this locale- 戻り値:
- string converted to uppercase
- 関連項目:
-
trim
Returns a copy of this string, with leading and trailing whitespace omitted. Returns null if this string is null.- 戻り値:
- a copy of this string without leading and trailing whitespace
- 関連項目:
-
equals
Returns true if the specified target is equal to this.- パラメータ:
target- the target to be compared- 戻り値:
- true if the specified target is equal to this
-