Package mondrian.util

Class Composite


  • public abstract class Composite
    extends java.lang.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> java.lang.Iterable<T> of​(java.lang.Iterable<? extends T>... iterables)
      Creates a composite iterable, inferring the element type from the arguments.
      static <T> java.util.Iterator<T> of​(java.util.Iterator<? extends T>... iterators)
      Creates a composite list, inferring the element type from the arguments.
      static <T> java.util.List<T> of​(java.util.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> java.util.List<T> of​(java.util.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> java.lang.Iterable<T> of​(java.lang.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> java.util.Iterator<T> of​(java.util.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