org.abego.treelayout.internal.util.java.lang.string
Class StringUtil

java.lang.Object
  extended by org.abego.treelayout.internal.util.java.lang.string.StringUtil

public class StringUtil
extends Object


Constructor Summary
StringUtil()
           
 
Method Summary
static String quote(String s)
          see quote(String, String)
static String quote(String s, String nullResult)
          Returns a quoted version of a given string, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

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 quote
nullResult - [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.