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
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

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

    • Composite

      public Composite()
  • Method Details

    • 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