Class CollectionUtils


  • public class CollectionUtils
    extends Object
    Some static methods used in this package that are related to dealing with collections
    Since:
    5.12
    Author:
    Michiel Meeuwissen
    • Method Detail

      • getFromList

        protected static <E> @Nullable E getFromList​(@Nullable List<@NonNull E> list)
      • indexOf

        public static <E> int indexOf​(List<E> list,
                                      E o,
                                      int offset)
      • createIfNullUnlessNull

        public static <P extends Comparable<P>> @Nullable SortedSet<P> createIfNullUnlessNull​(@Nullable SortedSet<P> set,
                                                                                              @Nullable Object check)