Package com.atlassian.jira.util
Class ObjectUtils
java.lang.Object
com.atlassian.jira.util.ObjectUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
equalsNullSafe
(Object o1, Object o2) Compares the two objects.static <T> T
firstIfNotNull
(T first, T second) static org.apache.commons.collections.Predicate
static boolean
isNotEmpty
(Object o) static boolean
isValueSelected
(Object selectValue)
-
Method Details
-
isNotEmpty
-
getIsSetPredicate
public static org.apache.commons.collections.Predicate getIsSetPredicate() -
isValueSelected
-
equalsNullSafe
Compares the two objects. Returns true if both are null references or both are not not null and equal.- Parameters:
o1
- object to compareo2
- object to compare- Returns:
- true if equal or both null, false otherwise
-
firstIfNotNull
public static <T> T firstIfNotNull(T first, T second)
-