Top Description Constructors Methods
net.bytebuddy.utility

public Class CompoundList

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List

Creates a list representation of two lists as a single, compound list.

Constructor Summary

AccessConstructor and Description
private
CompoundList()

A compound list cannot be created.

Method Summary

Modifier and TypeMethod and Description
public static <
The type of the list's elements.
S
>
List<S>

Returns:

A compound list representing the element and the list.
of
(S
The left element.
left
,
List<? extends S>
The right list.
right
)

Creates a list of a single element and another list.

public static <
The type of the list's elements.
S
>
List<S>

Returns:

A compound list representing the element and the list.
of
(List<? extends S>
The left left.
left
,
S
The right element.
right
)

Creates a list of a list and an element.

public static <
The type of the list's elements.
S
>
List<S>

Returns:

A compound list representing the elements of both lists.
of
(List<? extends S>
The left list.
left
,
List<? extends S>
The right list.
right
)

Creates a list of a left and right list.

public static <
The type of the list's elements.
S
>
List<S>

Returns:

A compound list representing the elements of all lists.
of
(List<? extends S>
The left list.
left
,
List<? extends S>
The middle list.
middle
,
List<? extends S>
The right list.
right
)

Creates a list of a left, a middle and a right list.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CompoundListback to summary
private CompoundList()

A compound list cannot be created.

Method Detail

ofback to summary
public static <S> List<S> of(S left, List<? extends S> right)

Creates a list of a single element and another list.

Parameters
<S>
The type of the list's elements.
left:S

The left element.

right:List<? extends S>

The right list.

Returns:List<S>

A compound list representing the element and the list.

ofback to summary
public static <S> List<S> of(List<? extends S> left, S right)

Creates a list of a list and an element.

Parameters
<S>
The type of the list's elements.
left:List<? extends S>

The left left.

right:S

The right element.

Returns:List<S>

A compound list representing the element and the list.

ofback to summary
public static <S> List<S> of(List<? extends S> left, List<? extends S> right)

Creates a list of a left and right list.

Parameters
<S>
The type of the list's elements.
left:List<? extends S>

The left list.

right:List<? extends S>

The right list.

Returns:List<S>

A compound list representing the elements of both lists.

ofback to summary
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.

Parameters
<S>
The type of the list's elements.
left:List<? extends S>

The left list.

middle:List<? extends S>

The middle list.

right:List<? extends S>

The right list.

Returns:List<S>

A compound list representing the elements of all lists.