com.ibm.carma.model.util
Class StringUtils

java.lang.Object
  extended by com.ibm.carma.model.util.StringUtils

public final class StringUtils
extends java.lang.Object

Set of utilities for dealing with common String operations

Since:
7.0

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String EMPTY_STRING
          Constant value -- ""
 
Constructor Summary
StringUtils()
           
 
Method Summary
static boolean isEmpty(java.lang.String item)
          Tests the given string for Empty.
static boolean isEquals(java.lang.String item1, java.lang.String item2)
          Tests the given strings for equality.
static java.lang.String resolveString(java.lang.String item)
          Tests to determine if the given string for null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

EMPTY_STRING

public static final java.lang.String EMPTY_STRING
Constant value -- ""

See Also:
Constant Field Values
Constructor Detail

StringUtils

public StringUtils()
Method Detail

resolveString

public static final java.lang.String resolveString(java.lang.String item)
Tests to determine if the given string for null. Returns an empty string if the item is null and the item contents otherwise

Parameters:
item - the string to test for null
Returns:
EMPTY_STRING when the item is null, the item contents otherwise.

isEmpty

public static final boolean isEmpty(java.lang.String item)
Tests the given string for Empty. This is defined as any of the following:

Parameters:
item - the string to test
Returns:
true if the string is empty, false otherwise

isEquals

public static final boolean isEquals(java.lang.String item1,
                                     java.lang.String item2)
Tests the given strings for equality. The test returns true if both of the strings are null.

Parameters:
item1 - original string
item2 - string to compare to
Returns:
true if both the strings are equivalent, or both are set to null.
Since:
7.1