Class ListUtils

java.lang.Object
net.mcreator.util.ListUtils

public class ListUtils extends Object
  • Constructor Details

    • ListUtils

      public ListUtils()
  • Method Details

    • merge

      public static <T> List<T> merge(Collection<T> a, Collection<T> b)
    • mergeNoDuplicates

      public static <T> Set<T> mergeNoDuplicates(Collection<T> a, Collection<T> b)
    • intersect

      public static <T> List<T> intersect(Collection<T> a, Collection<T> b)
    • rearrange

      public static <T> void rearrange(List<T> items, T input)
    • getRandomItem

      public static <T> T getRandomItem(T[] list)
    • getRandomItem

      public static <T> T getRandomItem(List<T> list)
    • getRandomItem

      public static <T> T getRandomItem(Random random, T[] list)
    • getRandomItem

      public static <T> T getRandomItem(Random random, List<T> list)