Package org.jf.util
Class ImmutableUtils
- java.lang.Object
-
- org.jf.util.ImmutableUtils
-
public class ImmutableUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ImmutableUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> com.google.common.collect.ImmutableList<T>
nullToEmptyList(com.google.common.collect.ImmutableList<T> list)
static <T> com.google.common.collect.ImmutableSet<T>
nullToEmptySet(com.google.common.collect.ImmutableSet<T> set)
static <T> com.google.common.collect.ImmutableSortedSet<T>
nullToEmptySortedSet(com.google.common.collect.ImmutableSortedSet<T> set)
-
-
-
Method Detail
-
nullToEmptyList
@Nonnull public static <T> com.google.common.collect.ImmutableList<T> nullToEmptyList(@Nullable com.google.common.collect.ImmutableList<T> list)
-
nullToEmptySet
@Nonnull public static <T> com.google.common.collect.ImmutableSet<T> nullToEmptySet(@Nullable com.google.common.collect.ImmutableSet<T> set)
-
nullToEmptySortedSet
@Nonnull public static <T> com.google.common.collect.ImmutableSortedSet<T> nullToEmptySortedSet(@Nullable com.google.common.collect.ImmutableSortedSet<T> set)
-
-