org.camunda.commons.utils
Class StringUtil

java.lang.Object
  extended by org.camunda.commons.utils.StringUtil

public final class StringUtil
extends Object

Author:
Sebastian Menski

Constructor Summary
StringUtil()
           
 
Method Summary
static boolean isExpression(String text)
          Checks whether a String seams to be an expression or not
static String join(String delimiter, String... parts)
          Joins a list of Strings to a single one.
static String[] split(String text, String regex)
          Splits a String by an expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

isExpression

public static boolean isExpression(String text)
Checks whether a String seams to be an expression or not

Parameters:
text - the text to check
Returns:
true if the text seams to be an expression false otherwise

split

public static String[] split(String text,
                             String regex)
Splits a String by an expression.

Parameters:
text - the text to split
regex - the regex to split by
Returns:
the parts of the text or null if text was null

join

public static String join(String delimiter,
                          String... parts)
Joins a list of Strings to a single one.

Parameters:
delimiter - the delimiter between the joined parts
parts - the parts to join
Returns:
the joined String or null if parts was null


Copyright © 2015 camunda services GmbH. All rights reserved.