|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.scheduler.util.Safe
@Internal public final class Safe
Static utility methods for things like null-testing and defensive copies.
| Method Summary | |
|---|---|
static byte[] |
copy(byte[] bytes)
Make a defensive copy of a byte array. |
static Date |
copy(Date date)
Make a defensive copy of a mutable Date. |
static Map<String,Serializable> |
copy(Map<String,Serializable> map)
Make a defensive copy of a possibly mutable map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@Nullable
public static Date copy(@Nullable
Date date)
Date.
@Nullable
public static byte[] copy(@Nullable
byte[] bytes)
@Nonnull
public static Map<String,Serializable> copy(@Nullable
Map<String,Serializable> map)
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||