net.sf.morph.util
Class StringUtils

java.lang.Object
  extended by net.sf.morph.util.StringUtils

public class StringUtils
extends java.lang.Object

Since:
Mar 11, 2005
Author:
Matt Sgarlata

Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String englishJoin(java.util.Collection values)
           
static java.lang.String englishJoin(java.lang.Object values)
           
static java.lang.String join(java.lang.Object object)
           
static java.lang.String join(java.lang.Object object, java.lang.String separator)
           
static int numOccurrences(java.lang.String toSearch, java.lang.String searchFor)
           
static java.lang.String removeWhitespace(java.lang.String expression)
           
static java.lang.String repeat(java.lang.String str, int repititions)
           
 
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

numOccurrences

public static int numOccurrences(java.lang.String toSearch,
                                 java.lang.String searchFor)

repeat

public static java.lang.String repeat(java.lang.String str,
                                      int repititions)

englishJoin

public static java.lang.String englishJoin(java.lang.Object values)

englishJoin

public static java.lang.String englishJoin(java.util.Collection values)

removeWhitespace

public static java.lang.String removeWhitespace(java.lang.String expression)

join

public static java.lang.String join(java.lang.Object object,
                                    java.lang.String separator)

join

public static java.lang.String join(java.lang.Object object)


Copyright © 2004-2008.