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 immutableListwith 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-
nullthen immutable copy;nullotherwise 
 - 
copyWithNullOf
Copies given Map with keeping null value if provided.- Parameters:
 map- instance to copy (maybenull)- Returns:
 - if the parameter is not-
nullthen immutable copy;nullotherwise 
 - 
copyWithNullOf
- Parameters:
 iterable- instance to copy (maybenull)- Returns:
 - if the parameter is not-
nullthen immutable copy;nullotherwise 
 - 
copyWithNullOf
Copies given array into immutableListwith keeping null value if provided.- Parameters:
 array- instance to copy (maybenull)- Returns:
 - if the parameter is not-
nullthen immutable copy;nullotherwise 
 
 -