Package mondrian.util
Class Composite
- java.lang.Object
-
- mondrian.util.Composite
-
public abstract class Composite extends Object
Composite collections.- Author:
- jhyde
-
-
Constructor Summary
Constructors Constructor Description Composite()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Iterable<T>
of(Iterable<? extends T>... iterables)
Creates a composite iterable, inferring the element type from the arguments.static <T> Iterator<T>
of(Iterator<? extends T>... iterators)
Creates a composite list, inferring the element type from the arguments.static <T> List<T>
of(List<? extends T>... lists)
Creates a composite list, inferring the element type from the arguments.
-
-
-
Method Detail
-
of
public static <T> List<T> of(List<? extends T>... lists)
Creates a composite list, inferring the element type from the arguments.- Type Parameters:
T
- element type- Parameters:
lists
- One or more lists- Returns:
- composite list
-
of
public static <T> Iterable<T> of(Iterable<? extends T>... iterables)
Creates a composite iterable, inferring the element type from the arguments.- Type Parameters:
T
- element type- Parameters:
iterables
- One or more iterables- Returns:
- composite iterable
-
-