Class CompoundList

java.lang.Object
net.bytebuddy.utility.CompoundList

public class CompoundList extends Object
Creates a list representation of two lists as a single, compound list.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    A compound list cannot be created.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <S> List<S>
    of(List<? extends S> left, List<? extends S> right)
    Creates a list of a left and right list.
    static <S> List<S>
    of(List<? extends S> left, List<? extends S> middle, List<? extends S> right)
    Creates a list of a left, a middle and a right list.
    static <S> List<S>
    of(List<? extends S> left, S right)
    Creates a list of a list and an element.
    static <S> List<S>
    of(S left, List<? extends S> right)
    Creates a list of a single element and another list.

    Methods inherited from class java.lang.Object

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

    • CompoundList

      private CompoundList()
      A compound list cannot be created.
  • Method Details

    • of

      public static <S> List<S> of(S left, List<? extends S> right)
      Creates a list of a single element and another list.
      Type Parameters:
      S - The type of the list's elements.
      Parameters:
      left - The left element.
      right - The right list.
      Returns:
      A compound list representing the element and the list.
    • of

      public static <S> List<S> of(List<? extends S> left, S right)
      Creates a list of a list and an element.
      Type Parameters:
      S - The type of the list's elements.
      Parameters:
      left - The left left.
      right - The right element.
      Returns:
      A compound list representing the element and the list.
    • of

      public static <S> List<S> of(List<? extends S> left, List<? extends S> right)
      Creates a list of a left and right list.
      Type Parameters:
      S - The type of the list's elements.
      Parameters:
      left - The left list.
      right - The right list.
      Returns:
      A compound list representing the elements of both lists.
    • of

      public static <S> List<S> of(List<? extends S> left, List<? extends S> middle, List<? extends S> right)
      Creates a list of a left, a middle and a right list.
      Type Parameters:
      S - The type of the list's elements.
      Parameters:
      left - The left list.
      middle - The middle list.
      right - The right list.
      Returns:
      A compound list representing the elements of all lists.