com.atlassian.jira.util
Class ObjectUtils

java.lang.Object
  extended by com.atlassian.jira.util.ObjectUtils

public class ObjectUtils
extends java.lang.Object


Constructor Summary
ObjectUtils()
           
 
Method Summary
static boolean equalsNullSafe(java.lang.Object o1, java.lang.Object o2)
          Compares the two objects.
static ObjectUtils getInstance()
           
static org.apache.commons.collections.Predicate getIsSetPredicate()
           
static boolean isNotEmpty(java.lang.Object o)
           
static boolean isValueSelected(java.lang.Object selectValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectUtils

public ObjectUtils()
Method Detail

getInstance

public static ObjectUtils getInstance()

isNotEmpty

public static boolean isNotEmpty(java.lang.Object o)

getIsSetPredicate

public static org.apache.commons.collections.Predicate getIsSetPredicate()

isValueSelected

public static boolean isValueSelected(java.lang.Object selectValue)

equalsNullSafe

public static boolean equalsNullSafe(java.lang.Object o1,
                                     java.lang.Object o2)
Compares the two objects. Returns true if both are null references or both are not not null and equal.

Parameters:
o1 - object to compare
o2 - object to compare
Returns:
true if equal or both null, false otherwise


Copyright © 2002-2010 Atlassian. All Rights Reserved.