Top Constructors Methods
org.abego.treelayout.internal.util.java.lang.string

public Class StringUtil

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the nullResult when s is null, otherwise s as a quoted string (i.e. Java String Literal)
quote
(String
[nullable] the string to quote
s
,
String
[default="null"] the String to be returned for null values.
nullResult
)

Returns a quoted version of a given string, i.e. as a Java String Literal.

public static String

Returns:

nullable
quote
(String
the string to quote
s
)

see quote(String, String)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StringUtilback to summary
public StringUtil()

Method Detail

quoteback to summary
public static String quote(String s, String nullResult)

Returns a quoted version of a given string, i.e. as a Java String Literal.

Parameters
s:String

[nullable] the string to quote

nullResult:String

[default="null"] the String to be returned for null values.

Returns:String

the nullResult when s is null, otherwise s as a quoted string (i.e. Java String Literal)

quoteback to summary
public static String quote(String s)

see quote(String, String)

Parameters
s:String

the string to quote

Returns:String

nullable