com.hoiio.sdk.util
Class StringUtil

java.lang.Object
  extended by com.hoiio.sdk.util.StringUtil

public class StringUtil
extends Object


Constructor Summary
StringUtil()
           
 
Method Summary
static String convertListToString(List<String> dests)
          Converts the List to comma-separated String
static String convertMapToUrlEncodedString(Map<String,String> map)
          Converts the Map to URL encoded String
static boolean isEmpty(String str)
          Checks for the String is empty or not.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

convertMapToUrlEncodedString

public static String convertMapToUrlEncodedString(Map<String,String> map)
Converts the Map to URL encoded String

Parameters:
map - Map<String, String>
Returns:
The encoded URL String

convertListToString

public static String convertListToString(List<String> dests)
Converts the List to comma-separated String

Parameters:
dests - List<String>
Returns:
The comma-separated String

isEmpty

public static boolean isEmpty(String str)
Checks for the String is empty or not. It checks both nullability and emptiness

Parameters:
str - String to check
Returns:
whether this string is empty or not