|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.xtext.xbase.lib.StringExtensions
public class StringExtensions
This is an extension library for strings
.
Constructor Summary | |
---|---|
StringExtensions()
|
Method Summary | |
---|---|
static boolean |
isNullOrEmpty(java.lang.String s)
Returns true if s is null or equal to the empty String "" . |
static java.lang.String |
operator_plus(java.lang.String a,
java.lang.Object b)
The binary + operator that concatenates two strings. |
static java.lang.String |
toFirstLower(java.lang.String s)
Returns the String s with an lower case first character. |
static java.lang.String |
toFirstUpper(java.lang.String s)
Returns the String s with an upper case first character. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringExtensions()
Method Detail |
---|
public static java.lang.String operator_plus(java.lang.String a, java.lang.Object b)
+
operator that concatenates two strings.
a
- a string.b
- another string.
a + b
public static boolean isNullOrEmpty(java.lang.String s)
true
if s
is null
or equal to the empty String
""
.
s
- the string
true
if s
is null
or equal to the empty String
""
public static java.lang.String toFirstUpper(java.lang.String s)
String
s
with an upper case
first character. This
function is null-safe.
s
- the string that should get an upper case first character. May be null
.
String
s
with an upper case first character or null
if the input
String
s
was null
.public static java.lang.String toFirstLower(java.lang.String s)
String
s
with an lower case
first character. This
function is null-safe.
s
- the string that should get an lower case first character. May be null
.
String
s
with an lower case first character or null
if the input
String
s
was null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |