XString extension
Properties
-
camelCase
→ String
-
convert to camel case format: foo bar -> FooBar, or an empty string if it is blank
no setter
-
first
→ String
-
no setter
-
idField
→ String
-
no setter
-
initials
→ String
-
convert to initials: Foo Bar -> FB, or an empty string if this is blank
no setter
-
isBlank
→ bool
-
true if this is null (including the string 'null'), empty or consists of only whitespace characters
no setter
-
isDigit
→ bool
-
true if this is non-null, non-empty and consists of only digits:
0-9
no setter
-
isEmptyOrNull
→ bool
-
true if this is null, or empty
no setter
-
isLetter
→ bool
-
true if this is non-null, non-empty and consists of only letters:
a-zA-Z
no setter
-
isLetterOrDigit
→ bool
-
true if this is non-null, non-empty and consists of only letters or digits:
0-9a-zA-Z
no setter
-
isNotBlank
→ bool
-
no setter
-
isUpperCase
→ bool
-
true if this is non-null, non-empty and consists of only upper case letters:
A-Z
no setter
-
last
→ String
-
no setter
-
size
→ int
-
no setter
-
titleized
→ String
-
convert to 'title' format: foo bar -> Foo Bar, or an empty string if it is blank.
similar to camelCase, but each segment is separated by a space
no setter
-
underscored
→ String
-
convert to underscored format: FooBar -> foo_bar
no setter
-
varName
→ String
-
convert to a standard variable name format: foo bar -> fooBar.
similar to camelCase, but starting with a lowercase character
no setter