Class CollectionUtils


  • public final class CollectionUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull java.lang.Object arrayOfType​(@NotNull java.lang.Class<?> elementType, @NotNull java.util.List<?> values)  
      static <A,​B>
      @NotNull java.util.List<B>
      mapToList​(@NotNull java.util.Collection<? extends A> xs, @NotNull java.util.function.Function<? super A,​? extends B> mapper)  
      • Methods inherited from class java.lang.Object

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

      • mapToList

        @NotNull
        public static <A,​B> @NotNull java.util.List<B> mapToList​(@NotNull
                                                                       @NotNull java.util.Collection<? extends A> xs,
                                                                       @NotNull
                                                                       @NotNull java.util.function.Function<? super A,​? extends B> mapper)
      • arrayOfType

        @NotNull
        public static @NotNull java.lang.Object arrayOfType​(@NotNull
                                                            @NotNull java.lang.Class<?> elementType,
                                                            @NotNull
                                                            @NotNull java.util.List<?> values)