Package mondrian.util

Class CompositeList<T>

  • Type Parameters:
    T - element type
    All Implemented Interfaces:
    Iterable<T>, Collection<T>, List<T>

    public class CompositeList<T>
    extends AbstractList<T>
    List composed of several lists.
    Author:
    jhyde
    • Constructor Detail

      • CompositeList

        public CompositeList​(List<? extends T>... lists)
        Creates a composite list.
        Parameters:
        lists - Component lists
    • Method Detail

      • of

        public static <T> CompositeList<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