|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.util.BambooObjectUtils
public class BambooObjectUtils
Method Summary | ||
---|---|---|
static
|
compare(T lhs,
T rhs)
Compares two objects in a null-safe way. |
|
static
|
defaultObject(T object,
T defaultVal)
|
|
static java.lang.String |
getId(java.lang.Object o)
|
|
static
|
rethrow(T t,
java.lang.Class<C> toRethrowC)
Given a Throwable t, and a Trowable toRethrowC, if t is an instance of toRethrowC, it will be rethrown. |
|
static
|
rethrow(T t,
java.lang.Class<C> toRethrowC,
java.lang.Class<D> toRethrowD)
Given a Throwable t, and a Trowables toRethrowC, toRethrowD, if t is an instance of toRethrowC or toRethrowD, it will be rethrown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends java.lang.Comparable<T>> int compare(@Nullable T lhs, @Nullable T rhs)
@Nullable public static <T> T defaultObject(@Nullable T object, @Nullable T defaultVal)
public static java.lang.String getId(@Nullable java.lang.Object o)
public static <T extends java.lang.Throwable,C extends T> java.lang.RuntimeException rethrow(T t, java.lang.Class<C> toRethrowC) throws C extends T
C extends T
public static <T extends java.lang.Throwable,C extends T,D extends T> java.lang.RuntimeException rethrow(T t, java.lang.Class<C> toRethrowC, java.lang.Class<D> toRethrowD) throws C extends T, D extends T
C extends T
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |