Package org.jf.util

Class ImmutableUtils

java.lang.Object
org.jf.util.ImmutableUtils

public class ImmutableUtils extends Object
  • Constructor Details

    • ImmutableUtils

      public ImmutableUtils()
  • Method Details

    • 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)