org.utgenome.gwt.utgb.client.util
Class StringUtil

java.lang.Object
  extended by org.utgenome.gwt.utgb.client.util.StringUtil

public class StringUtil
extends Object

Utiltiles for manipulating strings in GWT client codes

Author:
leo

Method Summary
static String formatNumber(int number)
          insert commas to the given number for the readability
static String join(List<String> elementList, String separator)
           
static String join(String[] elementList, String separator)
          Join the given element list with the specified separator
static String joinIterable(Iterable<String> element, String separator)
           
static String joinWithWS(String[] elementList)
           
static int toInt(String sInt)
          Convert a string representation of an integer with comma into an int value
static String unquote(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

join

public static String join(String[] elementList,
                          String separator)
Join the given element list with the specified separator

Parameters:
elementList - a list of strings to join
separator - e.g., ",", " ", etc.
Returns:
the concatination of the strings in the elementList, separated by the separator

join

public static String join(List<String> elementList,
                          String separator)

joinIterable

public static String joinIterable(Iterable<String> element,
                                  String separator)

joinWithWS

public static String joinWithWS(String[] elementList)
Parameters:
elementList -
Returns:

unquote

public static String unquote(String s)

toInt

public static int toInt(String sInt)
Convert a string representation of an integer with comma into an int value

Parameters:
sInt -
Returns:

formatNumber

public static String formatNumber(int number)
insert commas to the given number for the readability

Parameters:
number -
Returns:


Copyright © 2007-2012 utgenome.org. All Rights Reserved.