@Internal public final class Safe extends Object
null-testing and defensive copies.| Modifier and Type | Method and Description |
|---|---|
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.
|
@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.Copyright © 2017 Atlassian. All rights reserved.