org.apache.myfaces.tobago.internal.util
Class StringUtils

java.lang.Object
  extended by org.apache.myfaces.tobago.internal.util.StringUtils

public final class StringUtils
extends Object


Method Summary
static String constantToCamelCase(String constant)
           
static boolean equalsIgnoreCaseAndWhitespace(String type1, String type2)
          Is the same string, by ignoring differences that are only whitespaces.
static int[] getIndices(String list)
           
static boolean isUrl(String link)
          Checks if the String starts like a url, e.g. http: or xyz:
static
<T> String
joinWithSurroundingSeparator(List<T> list)
           
static List<Integer> parseIntegerList(String integerList)
           
static List<Integer> parseIntegerList(String integerList, String delimiters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseIntegerList

public static List<Integer> parseIntegerList(String integerList)
                                      throws NumberFormatException
Throws:
NumberFormatException

parseIntegerList

public static List<Integer> parseIntegerList(String integerList,
                                             String delimiters)
                                      throws NumberFormatException
Throws:
NumberFormatException

joinWithSurroundingSeparator

public static <T> String joinWithSurroundingSeparator(List<T> list)

getIndices

public static int[] getIndices(String list)

constantToCamelCase

public static String constantToCamelCase(String constant)

equalsIgnoreCaseAndWhitespace

public static boolean equalsIgnoreCaseAndWhitespace(String type1,
                                                    String type2)
Is the same string, by ignoring differences that are only whitespaces. (null and "" are not equal)


isUrl

public static boolean isUrl(String link)
Checks if the String starts like a url, e.g. http: or xyz:



Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.