|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.chef.util.CollectionUtils
public class CollectionUtils
Utility methods to work with collections.
| Constructor Summary | |
|---|---|
CollectionUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
copyOfOrEmpty(List<T> input)
Creates an immutable list with the elements of the given list. |
|
static
|
copyOfOrEmpty(Map<K,V> input)
Creates an immutable map with the elements of the given map. |
|
static
|
copyOfOrEmpty(Set<T> input)
Creates an immutable set with the elements of the given set. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionUtils()
| Method Detail |
|---|
public static <T> com.google.common.collect.ImmutableList<T> copyOfOrEmpty(@Nullable
List<T> input)
null, it returns an empty list.
input - The list used to build the immutable one.
public static <T> com.google.common.collect.ImmutableSet<T> copyOfOrEmpty(@Nullable
Set<T> input)
null, it returns an empty set.
input - The set used to build the immutable one.
public static <K,V> com.google.common.collect.ImmutableMap<K,V> copyOfOrEmpty(@Nullable
Map<K,V> input)
null, it returns an empty map.
input - The map used to build the immutable one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||