net.authorize.util
Class StringUtils

java.lang.Object
  extended by net.authorize.util.StringUtils

public class StringUtils
extends Object


Constructor Summary
StringUtils()
           
 
Method Summary
static void addCharEntity(int i, StringBuilder sb)
          Convert integer to char entity
static boolean isEmpty(String str)
          Return true if the string is null or "".
static boolean isNotEmpty(String str)
          Return true if the string is not null and not == "".
static boolean parseBool(String boolStringValue)
           
static double parseDouble(String doubleStringValue)
           
static int parseInt(String intStringValue)
           
static String sanitizeString(String string)
          Sanitize strings for output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

sanitizeString

public static String sanitizeString(String string)
Sanitize strings for output


addCharEntity

public static void addCharEntity(int i,
                                 StringBuilder sb)
Convert integer to char entity


isEmpty

public static boolean isEmpty(String str)
Return true if the string is null or "".

Parameters:
str -
Returns:
true if the string is "empty"

isNotEmpty

public static boolean isNotEmpty(String str)
Return true if the string is not null and not == "".

Parameters:
str -
Returns:
true if the string is NOT "empty"

parseDouble

public static double parseDouble(String doubleStringValue)

parseInt

public static int parseInt(String intStringValue)

parseBool

public static boolean parseBool(String boolStringValue)


Copyright © 2014. All Rights Reserved.