ch.elca.el4j.util.codingsupport
Class ObjectUtils

java.lang.Object
  extended by ch.elca.el4j.util.codingsupport.ObjectUtils

public final class ObjectUtils
extends Object

This class supports methods to handle with objects. It covers only caps of class org.springframework.util.ObjectUtils.

Author:
Martin Zeltner (MZE)
File-location:
ObjectUtils
Last check-in date:
2009-08-04 15:22:05 +0200 (Di, 04. Aug 2009) by swismer for revision 3881

Method Summary
static String asString(String s)
          Method which always returns a string object.
static boolean nullSaveEquals(String s1, String s2)
          This method is used to compare two strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nullSaveEquals

public static boolean nullSaveEquals(String s1,
                                     String s2)
This method is used to compare two strings.

Parameters:
s1 - Is the first string.
s2 - Is the second string.
Returns:
Returns true if s1 and s2 are null or empty and naturally if they are equals.

asString

public static String asString(String s)
Method which always returns a string object.

Parameters:
s - Is the string to check.
Returns:
Returns an empty string if given string object is null, otherwise the given string.


Copyright © 2005-2011 ELCA. All Rights Reserved.