Package mondrian.util

Class Composite


  • public abstract class Composite
    extends Object
    Composite collections.
    Author:
    jhyde
    • 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