mondrian.util
Class Composite

java.lang.Object
  extended by mondrian.util.Composite

public abstract class Composite
extends Object

Composite collections.

Author:
jhyde

Constructor Summary
Composite()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Composite

public Composite()
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

of

public static <T> Iterator<T> of(Iterator<? extends T>... iterators)
Creates a composite list, inferring the element type from the arguments.

Type Parameters:
T - element type
Parameters:
iterators - One or more iterators
Returns:
composite list

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads