Package org.jf.util

Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImmutableUtils

        public ImmutableUtils()
    • 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)