Package org.jclouds.docker.internal
Class NullSafeCopies
java.lang.Object
org.jclouds.docker.internal.NullSafeCopies
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> List
<E> copyOf
(E[] array) static <E> List
<E> static <E> List
<E> static <K,
V> Map <K, V> static <E> List
<E> copyWithNullOf
(E[] array) Copies given array into immutableList
with keeping null value if provided.static <E> List
<E> copyWithNullOf
(Iterable<E> iterable) static <E> List
<E> copyWithNullOf
(List<E> list) Copies given List with keeping null value if provided.static <K,
V> Map <K, V> copyWithNullOf
(Map<K, V> map) Copies given Map with keeping null value if provided.
-
Method Details
-
copyOf
-
copyOf
-
copyOf
-
copyOf
-
copyWithNullOf
Copies given List with keeping null value if provided.- Parameters:
list
- instance to copy (maybenull
)- Returns:
- if the parameter is not-
null
then immutable copy;null
otherwise
-
copyWithNullOf
Copies given Map with keeping null value if provided.- Parameters:
map
- instance to copy (maybenull
)- Returns:
- if the parameter is not-
null
then immutable copy;null
otherwise
-
copyWithNullOf
- Parameters:
iterable
- instance to copy (maybenull
)- Returns:
- if the parameter is not-
null
then immutable copy;null
otherwise
-
copyWithNullOf
Copies given array into immutableList
with keeping null value if provided.- Parameters:
array
- instance to copy (maybenull
)- Returns:
- if the parameter is not-
null
then immutable copy;null
otherwise
-