org.abego.treelayout.internal.util.java.lang.string
Class StringUtil
java.lang.Object
org.abego.treelayout.internal.util.java.lang.string.StringUtil
public class StringUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtil
public StringUtil()
quote
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
- [nullable] the string to quotenullResult
- [default="null"] the String to be returned for null values.
- Returns:
- the nullResult when s is null, otherwise s as a quoted string
(i.e. Java String Literal)
quote
public static String quote(String s)
- see
quote(String, String)
- Parameters:
s
-
- Returns:
- nullable
Copyright © 2011 abego Software GmbH, Germany. All Rights Reserved.